Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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 * 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.
- Loading branch information