Yelp / bravado-core

Other
109 stars 98 forks source link

Add option to set validate_swagger_spec default via environment variable #399

Closed chriskuehl closed 1 year ago

chriskuehl commented 1 year ago

This adds an option to set the validate_swagger_spec default via an environment variable.

The motivation is that we've found that a large amount of time is spent validating swagger specs in certain circumstances (e.g. tests) where it can dramatically increase test timings. Unfortunately, a lot of this validation happens at import time where it's difficult to patch the default via Python code, so we'd like to have the option to do it via environment variable.