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
When an array has the "maxItems" set. The validation error message fails to display the maxItems value.
try { String schemaString = "{\"type\": \"object\", \"properties\": {\"foo\": {\"type\": \"array\", \"maxItems\": 1, \"items\": {\"type\": \"string\"}}}}"; Schema schema = SchemaLoader.load(new JSONObject(schemaString)); schema.validate(new JSONObject("{\"foo\": [\"\", \"\"]}")); } catch (ValidationException e) { System.out.println(e.getMessage()); }
The error message:
#/foo: expected maximum item count: null, found: 2
The "null" should be 1 in this example.
The text was updated successfully, but these errors were encountered:
added integration test reproducing #78
3daeedd
fixing #78 (test added)
1343ab3
Thanks for reporting it @drawohkam , I fixed it in 1343ab3 , it will be included in the next release.
Sorry, something went wrong.
No branches or pull requests
When an array has the "maxItems" set. The validation error message fails to display the maxItems value.
The error message:
#/foo: expected maximum item count: null, found: 2
The "null" should be 1 in this example.
The text was updated successfully, but these errors were encountered: