Need validation - if schema (mentioned in "kind") exists or not
Not sure if this is "by design"?
When troubleshooting an ingestion problem in one OSDU instance, I created record using Storage service by mentioning (unknowingly) a non-existent schema in "kind".
The record was created and I could retrieve the record (and data) by using storage service.
Later, I was surprised to see that Search service response did not bring any data. It only showed me other parts like ACL, Legal tag. After troubleshooting I found out that "schema is not found" is the reason why data was not indexed from recently created record.
"index": {
"trace": [
"schema not found"
],
"statusCode": 404,
"lastUpdateTime": "2024-04-03T16:09:20.521Z"
},
I feel that the issue should have been detected and flagged right at the onset. And the user should not be allowed to create a record in this situation.
Please check.