WellLog 1.2.0 data.VerticalMeasurement.VerticalReferenceEnittyID marked as `extra fields not permitted` while posting a well log via /ddms_v3/wellogs
Background
Versoins
- OSDU M12
- Wellbore DDMS OSDU 0.2
Issue
We ingest a WellLog with data.VerticalMeasurement.VerticalReferenceEntityID
and data.VerticalMeasurement.VerticalReferenceID
via /ddms/v3/wellogs
, but there is an error thrown back as follows:
{
"detail": [
{
"loc": [
"body",
0,
"data",
"VerticalMeasurement",
"VerticalReferenceEntityID"
],
"msg": "extra fields not permitted",
"type": "value_error.extra"
},
]
}
I went through osdu_model and then I can see VerticalReferenceEntityID
is defined in the data model. I copied all the properties in AbstractFacilityVerticalMeasurement100
and sent them to /ddms_v3/welllogs
, only VerticalReferenceEntityID
got a complaint in the response.
Also, the error message doesn't look like the one in the ddms_v3_utils, which is "Record[{idx}] validation against schema '{kind.entity_type}:{kind.version}' failed: {str(validationError)}"
.
I just wonder if the error is from pydantic
rather than Wellbore DMS because extra fields not permitted
error message is available in model_utils_test only.
This error blocks us from writing a WellLog with VerticalReferenceEntityID
which is vital to us.
Please feel free to advise the workaround to resolve this issue.
Thank you very much.
Have a good one.
Update
This error message takes place when I commit a session via /ddms_v3/welllogs/{wellLogId}/session/{sessionId} as well. Also, this error occurs when I use /ddms_v3/welllogs to fetch a well log which has VerticalReferenceEntityID
as well.