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

Support jsonschema >= 3.0.0 #1050

Merged
merged 2 commits into from
Oct 18, 2019
Merged

Support jsonschema >= 3.0.0 #1050

merged 2 commits into from
Oct 18, 2019

Commits on Oct 8, 2019

  1. setup.py: Support jsonschema >= 3.0.0

    Other projects have started using jsonschema >= 3.0.0, and modern python
    packaging tools such as poetry now fail to install projects using both
    connexion and a different dependency if they depend on different
    versions of jsonschema.
    
    Allow jsonschema versions >= 3.0.0 to avoid this problem.
    
    See: python-poetry/poetry#697
    Clemens Lang committed Oct 8, 2019
    Configuration menu
    Copy the full SHA
    cb9f386 View commit details
    Browse the repository at this point in the history
  2. Avoid warning when using jsonschema >= 3.0

    jsonschema 3.0.0 changed the API to deprecate the types parameter of the
    jsonschema.IValidator constructor and now raises a warning when using
    it.
    
    Avoid the warning by checking the jsonschema version and switching to
    the new way to implement this when it is >= 3.0. Note that while
    jsonschema 2.x did have jsonschema.validators.extend, it did not support
    the type_checker argument, so the same code cannot be used with
    jsonschema 2.x.
    Clemens Lang committed Oct 8, 2019
    Configuration menu
    Copy the full SHA
    2f0d92b View commit details
    Browse the repository at this point in the history