Skip to content
New issue

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

Metadata validator for validating resource metadata encoded in a page against a registered schema class #200

Open
newgene opened this issue Oct 11, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@newgene
Copy link
Member

newgene commented Oct 11, 2022

Is your feature request related to a problem? Please describe.
A new feature allows validating resource metadata against a registered schema class (if JSON-schema definition exists)

Describe the solution you'd like
A new UI interface like /metadata/validator allows users to validate a copy/pasted JSON metadata or a URL of a page (metadata JSON can then be extracted) against a selected schema class registered in DDE

Describe alternatives you've considered
NA

Additional context
Possible UI ideas from these relevant pages:

And we should consider creating a new backend API endpoint to handle the actual validation, that way it will display the consistent error messages from the metadata input form (the "metadata guide"). The validation functionality might have already existed in the biothings_schema Python package.

@newgene newgene added the enhancement New feature or request label Oct 11, 2022
@newgene
Copy link
Member Author

newgene commented Oct 11, 2022

For the starting point, we can just allow copy/paste in a JSON object. Extracting from a given page at a URL can be added later, assuming there is a package for it already.

@flaneuse
Copy link
Collaborator

a potentially cool variation: does my schema match against any schema within the DDE? Related to the idea of having a discovery.biothings.io/translate to convert between schemas according to mapping schemas defined by @gtsueng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants