Saved searches
Cancel Create saved search
Sign up Reseting focus
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mongo validation toolkit: Implement JSON Schema-based validation routine #385
eecavanna opened this issue Aug 11, 2023 · 3 comments
Mongo validation toolkit: Implement JSON Schema-based validation routine #385
eecavanna opened this issue Aug 11, 2023 · 3 comments
backlog enhancement New feature or request
Comments
Contributor
eecavanna commented Aug 11, 2023 •
As part of creating a toolkit developers can use to validate the contents of the NMDC Mongo database.
Implement a function(s) that developers can use to validate that a given Mongo document adheres to a specific JSON Schema.
- The nmdc-schema Python package includes a JSON Schema representation of the NMDC schema
- The NMDC Schema documentation contains a guide for performing JSON Schema-based validation via the CLI
- The nmdc-runtime repo contains a tutorial about validating an nmdc:Database JSON object
- The nmdc-runtime repo contains some functions — here and here — that perform JSON Schema-based validation
- There is a JSON Schema validation package for Python, called jsonschema
- Mongo's built-in JSON Schema-based validation lacks support for the $ref key, which is present in the JSON Schema representation of the NMDC schema
This task originated as a subtask of #266.
The text was updated successfully, but these errors were encountered: