Skip to content

Commit

Permalink
Update dMRV Samples
Browse files Browse the repository at this point in the history
  • Loading branch information
marleyg committed May 22, 2024
1 parent faf9007 commit 4ff872e
Show file tree
Hide file tree
Showing 11 changed files with 957 additions and 1,038 deletions.
940 changes: 458 additions & 482 deletions dmrv/spec/index.html

Large diffs are not rendered by default.

158 changes: 62 additions & 96 deletions dmrv/spec/openapi-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"responses": {
"200": {
"description": "Success",
"description": "OK",
"content": {
"text/plain": {
"schema": {
Expand Down Expand Up @@ -41,7 +41,7 @@
],
"responses": {
"200": {
"description": "Success",
"description": "OK",
"content": {
"text/plain": {
"schema": {
Expand Down Expand Up @@ -70,7 +70,7 @@
],
"responses": {
"200": {
"description": "Success",
"description": "OK",
"content": {
"text/plain": {
"schema": {
Expand Down Expand Up @@ -99,7 +99,7 @@
],
"responses": {
"200": {
"description": "Success",
"description": "OK",
"content": {
"text/plain": {
"schema": {
Expand Down Expand Up @@ -128,7 +128,7 @@
],
"responses": {
"200": {
"description": "Success",
"description": "OK",
"content": {
"text/plain": {
"schema": {
Expand Down Expand Up @@ -157,7 +157,7 @@
],
"responses": {
"200": {
"description": "Success",
"description": "OK",
"content": {
"text/plain": {
"schema": {
Expand Down Expand Up @@ -186,7 +186,7 @@
],
"responses": {
"200": {
"description": "Success",
"description": "OK",
"content": {
"text/plain": {
"schema": {
Expand Down Expand Up @@ -215,7 +215,7 @@
],
"responses": {
"200": {
"description": "Success",
"description": "OK",
"content": {
"text/plain": {
"schema": {
Expand Down Expand Up @@ -244,7 +244,7 @@
],
"responses": {
"200": {
"description": "Success",
"description": "OK",
"content": {
"text/plain": {
"schema": {
Expand Down Expand Up @@ -1191,28 +1191,6 @@
],
"type": "string"
},
"DataExtension": {
"type": "object",
"properties": {
"key": {
"type": "string",
"nullable": true
},
"value": {
"type": "string",
"nullable": true
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/DataExtension"
},
"nullable": true,
"readOnly": true
}
},
"additionalProperties": false
},
"Date": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1325,14 +1303,6 @@
],
"type": "string"
},
"ExtensionOneofCase": {
"enum": [
"None",
"TypedExtension",
"UntypedExtension"
],
"type": "string"
},
"FileType": {
"enum": [
"DataBinary",
Expand Down Expand Up @@ -1518,7 +1488,7 @@
"mrvExtensionSets": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TypedExtension"
"$ref": "#/components/schemas/MrvExtension"
},
"nullable": true,
"readOnly": true
Expand Down Expand Up @@ -1995,17 +1965,44 @@
"MrvExtension": {
"type": "object",
"properties": {
"id": {
"type": "string",
"nullable": true
},
"name": {
"type": "string",
"nullable": true
},
"version": {
"type": "string",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"documentation": {
"type": "string",
"nullable": true
},
"mrvExtensionContext": {
"$ref": "#/components/schemas/MrvExtensionContext"
},
"typedExtension": {
"$ref": "#/components/schemas/TypedExtension"
"properties": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Property"
},
"nullable": true,
"readOnly": true
},
"untypedExtension": {
"$ref": "#/components/schemas/UntypedExtension"
"dataSchemaOrType": {
"type": "string",
"nullable": true
},
"extensionCase": {
"$ref": "#/components/schemas/ExtensionOneofCase"
"data": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
Expand Down Expand Up @@ -2272,6 +2269,20 @@
],
"type": "string"
},
"Property": {
"type": "object",
"properties": {
"key": {
"type": "string",
"nullable": true
},
"value": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"QualityStandard": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -2546,7 +2557,9 @@
"IssuingRegistry",
"ValidationAndVerificationBody",
"ProjectOwner",
"VerificationPlatformProvider"
"VerificationPlatformProvider",
"AccountableImpactOrganization",
"ActivityImpactModule"
],
"type": "string"
},
Expand Down Expand Up @@ -2638,24 +2651,6 @@
},
"additionalProperties": false
},
"TypedExtension": {
"type": "object",
"properties": {
"dataSchema": {
"type": "string",
"nullable": true
},
"documentation": {
"type": "string",
"nullable": true
},
"data": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"Unit": {
"enum": [
"TonneCo2E",
Expand Down Expand Up @@ -2712,40 +2707,11 @@
"SquareMeter",
"Tonne",
"MwH",
"KwH"
"KwH",
"Multiple"
],
"type": "string"
},
"UntypedExtension": {
"type": "object",
"properties": {
"name": {
"type": "string",
"nullable": true
},
"version": {
"type": "string",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"documentation": {
"type": "string",
"nullable": true
},
"dataExtensions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/DataExtension"
},
"nullable": true,
"readOnly": true
}
},
"additionalProperties": false
},
"Validation": {
"type": "object",
"properties": {
Expand Down
34 changes: 18 additions & 16 deletions dmrv/spec/samples/AccountableImpactOrganization.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,15 @@
"sourceIdentifier": "key:efc0b0b0-0b0b-0b0b-0b0b-0b0b0b0b0b0b",
"mrvExtensions": [
{
"id": "",
"name": "",
"version": "",
"description": "",
"documentation": "EXAMPLE: https://puro.earth/removal-methods/carbonated-concrete/mrv-extension/concrete-device-sensor/",
"mrvExtensionContext": "AimClaimSourceMrvExtension",
"typedExtension": {
"dataSchema": "https://puro.earth/schemas/mrv-extension/v1.0/mbp-claim-source-mrv-extension.json",
"documentation": "EXAMPLE: https://puro.earth/removal-methods/carbonated-concrete/mrv-extension/concrete-device-sensor/",
"data": "{data: Device ID, value: 1234567890, data: Calibration Offset, value: .0028, data: Calibration Slope, value: 1.0002}"
},
"untypedExtension": null,
"extensionCase": "TypedExtension"
"properties": [],
"dataSchemaOrType": "https://puro.earth/schemas/mrv-extension/v1.0/mbp-claim-source-mrv-extension.json",
"data": "{data: Device ID, value: 1234567890, data: Calibration Offset, value: .0028, data: Calibration Slope, value: 1.0002}"
}
]
}
Expand All @@ -108,23 +109,24 @@
],
"mrvExtensions": [
{
"id": "",
"name": "",
"version": "",
"description": "",
"documentation": "EXAMPLE: https:/puro.earth/mrv-extensions/mbp-mrv-extension/",
"mrvExtensionContext": "AimMrvExtension",
"typedExtension": {
"dataSchema": "https://puro.earth/schemas/mrv-extension/v1.0/mbp-mrv-extension.json",
"documentation": "EXAMPLE: https:/puro.earth/mrv-extensions/mbp-mrv-extension/",
"data": "{data: Baseline Scenario, value: Most plausible baseline scenario, data: Barrier analysis, value: Barrier analysis for alternative land use, data: Alternative land use: Cattle ranching, value: Barrier analysis found that cattle ranching was not a viable alternative land use because of the low productivity of the land and the high cost of fencing.}"
},
"untypedExtension": null,
"extensionCase": "TypedExtension"
"properties": [],
"dataSchemaOrType": "https://puro.earth/schemas/mrv-extension/v1.0/mbp-mrv-extension.json",
"data": "{data: Baseline Scenario, value: Most plausible baseline scenario, data: Barrier analysis, value: Barrier analysis for alternative land use, data: Alternative land use: Cattle ranching, value: Barrier analysis found that cattle ranching was not a viable alternative land use because of the low productivity of the land and the high cost of fencing.}"
}
],
"validations": [
{
"requestDate": "2021-04-01",
"validationDate": "11/1/2023",
"validationDate": "5/22/2024",
"validatingPartyId": "8226ece8-27b8-46f7-b21f-f531705c11cb",
"validationMethod": "ISO 14064-3:2018",
"validationExpirationDate": "11/1/2023",
"validationExpirationDate": "5/22/2024",
"validationSteps": [
{
"validationStepName": "Project Plan",
Expand Down
34 changes: 18 additions & 16 deletions dmrv/spec/samples/ActivityImpactModule.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@
"sourceIdentifier": "key:efc0b0b0-0b0b-0b0b-0b0b-0b0b0b0b0b0b",
"mrvExtensions": [
{
"id": "",
"name": "",
"version": "",
"description": "",
"documentation": "EXAMPLE: https://puro.earth/removal-methods/carbonated-concrete/mrv-extension/concrete-device-sensor/",
"mrvExtensionContext": "AimClaimSourceMrvExtension",
"typedExtension": {
"dataSchema": "https://puro.earth/schemas/mrv-extension/v1.0/mbp-claim-source-mrv-extension.json",
"documentation": "EXAMPLE: https://puro.earth/removal-methods/carbonated-concrete/mrv-extension/concrete-device-sensor/",
"data": "{data: Device ID, value: 1234567890, data: Calibration Offset, value: .0028, data: Calibration Slope, value: 1.0002}"
},
"untypedExtension": null,
"extensionCase": "TypedExtension"
"properties": [],
"dataSchemaOrType": "https://puro.earth/schemas/mrv-extension/v1.0/mbp-claim-source-mrv-extension.json",
"data": "{data: Device ID, value: 1234567890, data: Calibration Offset, value: .0028, data: Calibration Slope, value: 1.0002}"
}
]
}
Expand All @@ -69,23 +70,24 @@
],
"mrvExtensions": [
{
"id": "",
"name": "",
"version": "",
"description": "",
"documentation": "EXAMPLE: https:/puro.earth/mrv-extensions/mbp-mrv-extension/",
"mrvExtensionContext": "AimMrvExtension",
"typedExtension": {
"dataSchema": "https://puro.earth/schemas/mrv-extension/v1.0/mbp-mrv-extension.json",
"documentation": "EXAMPLE: https:/puro.earth/mrv-extensions/mbp-mrv-extension/",
"data": "{data: Baseline Scenario, value: Most plausible baseline scenario, data: Barrier analysis, value: Barrier analysis for alternative land use, data: Alternative land use: Cattle ranching, value: Barrier analysis found that cattle ranching was not a viable alternative land use because of the low productivity of the land and the high cost of fencing.}"
},
"untypedExtension": null,
"extensionCase": "TypedExtension"
"properties": [],
"dataSchemaOrType": "https://puro.earth/schemas/mrv-extension/v1.0/mbp-mrv-extension.json",
"data": "{data: Baseline Scenario, value: Most plausible baseline scenario, data: Barrier analysis, value: Barrier analysis for alternative land use, data: Alternative land use: Cattle ranching, value: Barrier analysis found that cattle ranching was not a viable alternative land use because of the low productivity of the land and the high cost of fencing.}"
}
],
"validations": [
{
"requestDate": "2021-04-01",
"validationDate": "11/1/2023",
"validationDate": "5/22/2024",
"validatingPartyId": "8226ece8-27b8-46f7-b21f-f531705c11cb",
"validationMethod": "ISO 14064-3:2018",
"validationExpirationDate": "11/1/2023",
"validationExpirationDate": "5/22/2024",
"validationSteps": [
{
"validationStepName": "Project Plan",
Expand Down
Loading

0 comments on commit 4ff872e

Please sign in to comment.