Skip to content

openapi_spec_validator fails with jsonschema 4.0 #130

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
svart-riddare opened this issue Sep 30, 2021 · 3 comments · Fixed by #137
Closed

openapi_spec_validator fails with jsonschema 4.0 #130

svart-riddare opened this issue Sep 30, 2021 · 3 comments · Fixed by #137

Comments

@svart-riddare
Copy link

jsonschema python package released version 4.0.0 less than a day ago; openapi_spec_validator does not work with this version :

File "/home/jenkins/.local/lib/python3.5/site-packages/openapi_spec_validator/init.py", line 7, in
from openapi_spec_validator.factories import JSONSpecValidatorFactory
File "/home/jenkins/.local/lib/python3.5/site-packages/openapi_spec_validator/factories.py", line 2, in
from jsonschema import validators
File "/home/jenkins/.local/lib/python3.5/site-packages/jsonschema/init.py", line 56
raise AttributeError(f"module {name} has no attribute {name}")

I do not know if the problem is located in openapi_spec_validator or jsonschema.

@Lothiraldan
Copy link

Are you using Python 2 or Python 3.5 by any chance?

@svart-riddare
Copy link
Author

Yes, python 3.5 in a Debian Stretch.

@Lothiraldan
Copy link

Created a ticket to track the issue in jsonschema python-jsonschema/jsonschema#845

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