jsonschema library is almost ready for a major version release.
The new release is changing how the validator methods are named within jsonschema._validators package.
In general we should not import private definitions, but this was done.
In order to make swagger-spec-validator able to work with the current jsonschema releases and the new release (alpha released) we need to wrap the validators using a different approach.
Instead of manually defining the validator methods this PR extracts them from Draft4Validator class (by using only public informations)
Coverage decreased (-0.01%) to 98.416% when pulling 8540b5262cdf1c0b69685d0be143c31dbc88668f on macisamuele:maci-preparation-for-jsonschema-major-release into e440e63d40e8eb805d23bffcd2f95abc53bb5907 on Yelp:master.
jsonschema library is almost ready for a major version release. The new release is changing how the validator methods are named within
jsonschema._validators
package.In general we should not import private definitions, but this was done.
In order to make swagger-spec-validator able to work with the current jsonschema releases and the new release (alpha released) we need to wrap the validators using a different approach.
Instead of manually defining the validator methods this PR extracts them from
Draft4Validator
class (by using only public informations)