We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given an array schema with choices, if the choices have titles, validation fails with Invalid choice + "<value of first selected item>"
Invalid choice + "<value of first selected item>"
I have made a simplified demonstration using the validation section of the playground
enter this schema:
{ "title": "Press \"Submit\" to validate data", "type": "array", "items": { "type": "string", "choices": [ {"value": "RED", "title": "Thing One"}, {"value": "BLUE", "title": "Thing Two"}, {"value": "GREEN", "title": "Who Knows?"} ] }, "minItems": 1, "uniqueItems": true }
Validation submission fails like this:
However, if the titles are removed and we just have an array of choices, then it submits fine:
{ "title": "Press \"Submit\" to validate data", "type": "array", "items": { "type": "string", "choices": ["RED", "BLUE", "GREEN"] }, "minItems": 1, "uniqueItems": true }
The text was updated successfully, but these errors were encountered:
18b91ac
Fixed in v2.14.3.
Also released in django-jsonform v2.23.1.
Thanks for reporting.
Sorry, something went wrong.
No branches or pull requests
Given an array schema with choices, if the choices have titles, validation fails with
Invalid choice + "<value of first selected item>"
I have made a simplified demonstration using the validation section of the playground
enter this schema:
Validation submission fails like this:
However, if the titles are removed and we just have an array of choices, then it submits fine:
The text was updated successfully, but these errors were encountered: