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

Errors with jsonschema 3.2.0 - not with 4.6.0 #306

Open
SnarkBoojum opened this issue Jul 10, 2022 · 0 comments
Open

Errors with jsonschema 3.2.0 - not with 4.6.0 #306

SnarkBoojum opened this issue Jul 10, 2022 · 0 comments

Comments

@SnarkBoojum
Copy link

While trying to upgrade the Debian package for atd in Debian from 2.4.1 to 2.9.1, I had issues:

(cd _build/default/atdcat/test && /usr/bin/python3 -m jsonschema schema.json -i data.json)
3.3: False schema does not allow 3.3
-77.22: False schema does not allow -77.22
['Thing', 99]: ['Thing', 99] is not valid under any of the given schemas
['!!!', ['a', 'b']]: ['!!!', ['a', 'b']] is not valid under any of the given schemas
1.1: False schema does not allow 1.1
1: False schema does not allow 1
2.2: False schema does not allow 2.2
2: False schema does not allow 2
['Some', 10]: ['Some', 10] is not valid under any of the given schemas
['Some', 88]: ['Some', 88] is not valid under any of the given schemas

and it turns out it was due to Debian currently using jsonschema 3.2.0 -- things worked with jsonschema 4.6.0 (not yet readily available in Debian).

So you should probably document which jsonschema version you actually depend on, to avoid bogus reports of errors in atd.

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

No branches or pull requests

1 participant