The compositional analysis data schema has a nested component formula
In the compositional analysis data schema here: https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/rock-and-fluid-sample/rafs-ddms-services/-/blob/main/app/models/data_schemas/jsonschema/compositionalanalysis_data_schema.json, ComponentFormula
should be a separate attribute from the remaining attributes (e.g. ComponentName
) instead of nesting the remaining components in ComponentFormula
. The example of the data schema is fine though, here: https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/rock-and-fluid-sample/rafs-ddms-services/-/blob/main/app/models/data_schemas/jsonschema/compositionalanalysis_example.json.
Change nesting of CompositionalAnalysis to:
Click to expand
"CompositionalAnalysis": {
"name": "Compositional analysis taken under specific conditions",
"type": "array",
"items": {
"ComponentFormula": {
"type": "string",
"description": "The chemical composition of the component"
},
"ComponentName": {
"type": "string",
"description": "The name of the liquid component."
},
"FlashedLiquidRelativeMass": {
"type": "number",
"description": "The relative mass of the component in the flashed liquid.",
"x-osdu-frame-of-reference": "UOM:%[mass]"
},
"FlashedGasRelativeMass": {
"type": "number",
"description": "The relative mass of the component in the flashed gas.",
"x-osdu-frame-of-reference": "UOM:%[mass]"
},
"FlashedLiquidRelativeMolarWeight": {
"type": "number",
"description": "The relative molar weight of the component in the flashed liquid.",
"x-osdu-frame-of-reference": "UOM:%[molar]"
},
"OverallFluidRelativeMass": {
"type": "number",
"description": "The relative mass of the component in the flashed liquid.",
"x-osdu-frame-of-reference": "UOM:%[mass]"
},
"OverallFluidRelativeMolarWeight": {
"type": "number",
"description": "The relative mass of the component in the flashed liquid.",
"x-osdu-frame-of-reference": "UOM:%[mass]"
}
}
},
Edited by Michael Jones