Skip to content

Meta tests #383

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

Closed
wants to merge 11 commits into from
Closed

Conversation

danielvasas
Copy link

Added meta tests, i.e. tests of handling invalid schemas. I couldn't get the test suite fully working locally on my machine, so I can't be 100% sure that it will work out of the box, but even if it doesn't, it should be relatively easy to get it working.

One question: according to the schema spec (https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3) the 'pattern' property must be a valid regexp. Yet when it is an invalid one, jsonschema doesn't raise a SchemaError, instead some regex Exception comes up from below. Shouldn't it be a SchemaError in this case too? What do you think?

@Julian Julian closed this Jan 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants