Add x-osdu relationship reference data to all UoM in all content schemas
Task (1) To all UnitsOfMeasure in all active content schema a following change should be applied, add the following array:
"x-osdu-relationship": [
{"GroupType": "reference-data",
"EntityType": "UnitOfMeasure"
}
]
Task (2) For all reference lists that are not UoM enrich the schema defintion with following:
"x-osdu-relationship": [
{
"GroupType": "reference-data",
"EntityType": "ReferenceListName"
}
]
For example
-
cap_pressure_data_schema has a Porosity object with the following nested attributes
- Value - numeric
- Type - string with a pattern of using reference data of
PorosityMeasurementType
- UnitOfMeasure - string with a pattern of using reference data and x-osdu-relationship array
- Porosity object should have a new array inside: x-osdu-relationship
- UnitOfMeasure object should have a new array inside: x-osdu-relationship
- x-osdu-relationship array inside the Porosity.Type should have the following nested attributes
- GroupType: "reference-data",
- EntityType: "PorosityMeasurementType"
- x-osdu-relationship array inside the UnitOfMeasure should have the following nested attributes
- GroupType: "reference-data",
- EntityType: "UnitOfMeasure"
Edited by Mykhailo Buriak