Required fields that should be optional
When trying to POST a new RockSampleAnalsis I had to put legal.status
and data.Parameters
into my JSON even though both of those properties are optional from a schema perspective. You could maybe make an argument that data.Parameters
should be there from a business rules perspective, but legal.status
should definitely not be required as the system will add that property in the storage service.
Example of the JSON I had to send ...
[{
"id": "osdu-dev:work-product-component--RockSampleAnalysis:MyTestSample2",
"kind": "osdu:wks:work-product-component--RockSampleAnalysis:1.1.0",
"acl": {
"owners": [
"data.default.owners@osdu-dev.exxonmobil.com"
],
"viewers": [
"data.default.viewers@osdu-dev.exxonmobil.com"
]
},
"legal": {
"legaltags": [
"osdu-dev-default-legal"
],
"otherRelevantDataCountries": [
"US"
],
"status": "compliant"
},
"data": {
"Name": "Test RSA2",
"Description": "Testing the DDMS Endpoint",
"TopDepth": 12345.6,
"BottomDepth": 12345.6,
"Parameters": []
}
}]