-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update validator to support floats in min/max and disallow string types #230
Conversation
…value are not declared as strings and create test cases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need something a little different to handle value sources that reference another answer, you'll likely need to look that up in one of the existing questionnaire schema maps to find the type of the source
….py to check for the types of Metadata value sources
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor things following the fixes, but looking good!
…d number_answer_validator.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we both looked at it, I'll leave to 2 others as the official reviewers, but looking good to me! 🎉
…w test cases to reflect that these types are allowed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good 🎉
What is the context of this PR?
Provide additional validation to ensure minimum/maximum values set in JSON are not of string types and change JSON schema definitions to accept floats.
How to review
Checklist