Closed ajatkj closed 1 year ago
Hey @ajatkj, found this issue in the actual repo of the project I used as a dependency, could you check if installing openapi-schema-validator
with 0.1.3
version or higher helps?
Link to the issue - https://github.com/python-openapi/openapi-spec-validator/issues/112
Hi @manchenkoff, upgrading openapi-spec-validator to v0.6.0 solves this issue. This in turn updates openapi-schema-validator to v0.6.1 which handles the latest jsonschema version. Should I raise a PR to bump openapi-spec-validator version to v0.6.0?
@ajatkj that would be nice, thanks!
@ajatkj merged and published as v1.1.14, thanks for the contribution!
Describe the bug Running into below error when I try to parse openapi data.
RuntimeError: No validation backend available! Install one of "flex", "openapi-spec-validator" or "swagger-spec-validator".
Upon further investigation, found this error which is thrown from
openapi-schema-validator
which is a dependency ofopenapi-spec-validator
-Import or syntax error cannot import name '_legacy_validators' from 'jsonschema'
I am not sure how to proceed further with this because even after installing other back-end "flex" it raises exception the same exception.
Let me know if I am missing something here.
To Reproduce
parse("sample.yaml")