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

JSON Validator for uploaded questions #56

Open
alongreyber opened this issue Oct 20, 2020 · 1 comment
Open

JSON Validator for uploaded questions #56

alongreyber opened this issue Oct 20, 2020 · 1 comment

Comments

@alongreyber
Copy link
Contributor

Might be worth looking into using a JSON schema validator on uploaded questions and messages to ensure they match the Reasoner Standard API. This would reduce the amount of validation that we need to maintain manually as well as hopefully giving us the ability to provide better error messages back to users.

https://github.com/ajv-validator/ajv

@maximusunc
Copy link
Collaborator

I think this is a good idea, and something I somewhat implemented here: https://github.com/ranking-agent/gamma-viewer/blob/master/js/src/App.jsx#L13. We would want a static yaml schema file as we don't want a remote one to change out from under us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants