clingen-data-model / clinvar-api

Software for working with the ClinVar web API
Apache License 2.0
2 stars 0 forks source link

Implement json schema validation #3

Open theferrit32 opened 3 years ago

theferrit32 commented 3 years ago

Might be a good opportunity to test out https://github.com/linkml/linkml

theferrit32 commented 3 years ago

JSON schema validation has been implemented for the submission payload sent by the client to the ClinVar server, but not any other objects.

Since the status response object is fairly complex and we need to dig deep into it to check the status of individual submitted records, it would be worthwhile to validate the schema matches what we expect as well. At least the minimal structure we need to look at, allowing for other fields to be added/changed.