Skip to content
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

Support for schema version draft-07 #302

Open
andy-maier opened this issue Nov 26, 2024 · 0 comments
Open

Support for schema version draft-07 #302

andy-maier opened this issue Nov 26, 2024 · 0 comments

Comments

@andy-maier
Copy link

andy-maier commented Nov 26, 2024

What are you trying to do?

We use schema version draft-07 and get a warning:

UserWarning: Schema version http://json-schema.org/draft-07/schema# not recognized. Some keywords and features may not be supported.

which is understandable since only draft-03 and draft-04 are supported, according to this.

My attempt to fall back to draft-04:

  • If we change our $schema attribute to draft-04, we get schema validation errors (jsonschema.exceptions.SchemaError exception from jsonschema.validators.Draft4Validator) for our use of minItems and anyOf.

  • The minItems and anyOf keywords are supported in the specification of draft-04.

  • Not sure whether this gap in supporting draft-04 is in jsonschema or in python-jsonschema-objects, but it prevents us to fall back to draft-04 at the moment.

Please add support for at least schema version draft-07 (more ideally, also for the final versions 2019-09 and 2020-12.

https://json-schema.org/specification does not even show draft-03 and draft-04 anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant