-
-
Notifications
You must be signed in to change notification settings - Fork 590
Wrong absolute_path with anyOf nested in allOf #312
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
Comments
I found this problem with the 2.5.1 Ubuntu package, but I've tested with Git |
Sorry, I should have read the error handling docs more carefully. I realize now that this is actually expected behavior, since the default heuristic considers Closing this now. Sorry for the noise. |
Glad you figured it out thanks for following up. |
0f344a69 Merge pull request #313 from leadpony/issue309 46c44747 Replace the control escape \\a with \\t 1ffe03e5 Merge pull request #312 from gregsdennis/master de004798 better descripttions eea7f249 arrays have characters too 7c02d06d added unevaluatedProperties test file; resolves #310 1899a5aa Merge pull request #308 from aznan2/master 4a5010b3 Update the version list. 37569b13 issue #307 - made test compatible with draft4 e3087307 issue #307 - removed issue reference from description e13d3275 issue #307 - removed pound sign from description a3b9f723 issue #307 - test that oneOf handles missing optional property git-subtree-dir: json git-subtree-split: 0f344a698f6657441adf4ebf4ceeacd596683422
I was working on a schema and noticed that the
absolute_path
in theValidationException
was not quite right when working withanyOf
nested insideallOf
.Here's a small test case:
test.json
schema1.json
schema2.json
And finally:
test.py
Output from
python3 test.py
Expected output
In both cases, the offending element in the instance is the same, so I would expect the
absolute_path
to be the same.Would be great to have this fixed, as I'm using an
allOf { anyOf { ... } }
construct at quite a high level in my schema, and theabsolute_path
really helps when presenting an error to the user. As it is, the path is collapsed like this, making the error message not very helpful :/The text was updated successfully, but these errors were encountered: