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

Incompatible with openapi-schema-validator 0.2.0 #135

Closed
myrho opened this issue Jan 13, 2022 · 0 comments · Fixed by #137
Closed

Incompatible with openapi-schema-validator 0.2.0 #135

myrho opened this issue Jan 13, 2022 · 0 comments · Fixed by #137

Comments

@myrho
Copy link

myrho commented Jan 13, 2022

openapi-spec-validator seems not to be compatible with the recent version of openapi-schema-validator which is 0.2.0. I stumpled upon the following error in my project's test:

self = <openapi_spec_validator.validators.ValueValidator object at 0x7fb8ad9ca6d0>
schema = {'default': 10, 'maximum': 100, 'type': 'integer'}, value = 10

    @wraps_errors
    def iter_errors(self, schema, value):
        validator = OAS30Validator(
            schema,
            resolver=self.dereferencer.resolver_manager.resolver,
>           format_checker=oas30_format_checker,
        )
E       TypeError: __init__() got an unexpected keyword argument 'resolver'

.tox/py37/lib/python3.7/site-packages/openapi_spec_validator/validators.py:345: TypeError

Adding openapi-schema-validator < 0.2.0 to my project's requirements.txt helps to work around this issue.

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