Yelp / swagger_spec_validator

Other
104 stars 71 forks source link

Show definition name in SwaggerValidationError #124

Closed stevesimmons closed 4 years ago

stevesimmons commented 5 years ago

validator20.validate_definition() does not include the name of the definition failing validation when raising SwaggerValidationErrors.

This pull request add the definition name to the exception, thereby making it easier to fix the schema error.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.004%) to 98.125% when pulling 219dd57fb4480d789b3ad381f69c1e9e03f926b7 on stevesimmons:master into 8d344a158442078a0d88c2738fedd9eb6f094afe on Yelp:master.