Closed benscott closed 2 years ago
I've been using this as an example - I have written a validation tool and just need to deploy and test { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "authoritative": { "type": "object", "properties": { "physicalSpecimenId": { "type": "string" }, "institution": { "type": "array", "items": [ { "type": "string" }, { "type": "string" } ] }, "materialType": { "type": "string" } }, "required": [ "physicalSpecimenId", "institution", "materialType" ] }, "images": { "type": "object", "properties": { "availableImages": { "type": "array", "items": [ { "type": "object", "properties": { "source": { "type": "string" }, "license": { "type": "string" } }, "required": [ "source", "license" ] } ] } }, "required": [ "availableImages" ] }, "higher_classification": { "type": "string" } }, "required": [ "authoritative", "images", "higher_classification" ] }
I have a locally functioning implementation of this and seem not to have checked it in or deployed it to the test server - will do ASAP
Complete
openDS json schema should be included in the tools, and input/output validated against the schema.
For the MVP this schema will be static, but will change in future iterations of the SDR. See #27