-
-
Couldn't load subscription status.
- Fork 599
Closed
Labels
BugSomething doesn't work the way it should.Something doesn't work the way it should.Error ReportingIssues related to clearer or more robust validation error reportingIssues related to clearer or more robust validation error reporting
Description
from jsonschema.validators import validator_for
schema = {"unevaluatedProperties": {"const": 12}}
print(next(validator_for(schema)(schema).iter_errors({"type": 37})))produces the misleading:
Unevaluated properties are not allowed ('type' was unexpected)
Failed validating 'unevaluatedProperties' in schema:
{'unevaluatedProperties': {'const': 12}}
On instance:
{'type': 37}
Metadata
Metadata
Assignees
Labels
BugSomething doesn't work the way it should.Something doesn't work the way it should.Error ReportingIssues related to clearer or more robust validation error reportingIssues related to clearer or more robust validation error reporting