-
-
Notifications
You must be signed in to change notification settings - Fork 32
Cannot import _legacy_validators #131
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
Comments
Facing the same issue right now. Was a result of the following commit which renamed |
Cannot import _legacy_validators from JSONSchema due to: python-openapi/openapi-schema-validator#131 No-Issue
@TheTeaCat workaround for now is |
Cannot import _legacy_validators from JSONSchema due to: python-openapi/openapi-schema-validator#131 No-Issue
Is there a reason we need to access a private API here? |
Some OpenAPI schema keywords (such as anyOf, oneOf, allOf) are extended versions of Draft ones. |
I've just noticed both the private usage and this issue -- there's no reason to use private APIs even if this is the case. There's perfectly public APIs for doing this, it's e.g. And please always raise such things even if there were missing APIs -- private indeed means private and can change at any time. |
jsonschema released 2 hours ago comes with a change
suggestion
Do a conditional import on validators.py
The text was updated successfully, but these errors were encountered: