Skip to content

Deprecation warning for jsonschema @ 4.0.0 #134

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
nikitagashkov opened this issue Oct 9, 2021 · 1 comment
Closed

Deprecation warning for jsonschema @ 4.0.0 #134

nikitagashkov opened this issue Oct 9, 2021 · 1 comment

Comments

@nikitagashkov
Copy link

Hello @p1c2u, thanks for your library. I've recently performed a scheduled dependencies upgrade and encountered the following warning:

...

  /Users/.../lib/python3.9/site-packages/jsonschema/validators.py:190: DeprecationWarning: Passing a schema to Validator.iter_errors is deprecated and will be removed in a future release. Call validator.evolve(schema=new_schema).iter_errors(...) instead.
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/warnings.html

Looks like jsonschema starting from v4.0.0 deprecates one of theirs API used: https://github.com/Julian/jsonschema/releases/tag/v4.0.0

@p1c2u
Copy link
Collaborator

p1c2u commented Jan 28, 2022

It will be fixed in version 0.5.x which is dependent on jsonschema4+
Version 0.4.x will support jsonschema 3 and 4.

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

2 participants