DiSSCo / SDR

Specimen Data Refinery
Apache License 2.0
6 stars 0 forks source link

Create a Galaxy tool to validate openDS against a schema #26

Closed benscott closed 2 years ago

benscott commented 3 years ago

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

PaulBrack commented 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" ] }

PaulBrack commented 2 years ago

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

PaulBrack commented 2 years ago

Complete