Clinical-Genomics / preClinVar

A ClinVar API submission helper written in FastAPI
MIT License
1 stars 0 forks source link

Upgrade to new API schema released after 2022-11-21 #56

Closed northwestwitch closed 1 year ago

northwestwitch commented 1 year ago

This PR adds | fixes:

With the new schema the validation fails with the following errors:

{ "message": "Created json file contains validation errors: [\"Additional properties are not allowed ('assertionCriteria', 'releaseStatus' were unexpected)\", \"Additional properties are not allowed ('assertionCriteria', 'releaseStatus' were unexpected)\", \"Additional properties are not allowed ('assertionCriteria', 'releaseStatus' were unexpected)\", \"Additional properties are not allowed ('assertionCriteria', 'releaseStatus' were unexpected)\", \"Additional properties are not allowed ('assertionCriteria', 'releaseStatus' were unexpected)\"]" }

How to test:

Expected outcome:

Review:

This version is a:

northwestwitch commented 1 year ago

Successfully modified the code to parse old csv files to create a new demo json submission file compliant with the new API. This new submission object was tested against the ClinVar API (Validate) and passed validation: 🆗

image