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

Add option to set validate_swagger_spec default via environment variable #399

Merged
merged 1 commit into from Jul 19, 2023

Conversation

chriskuehl
Copy link
Contributor

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.

@chriskuehl chriskuehl force-pushed the option-to-disable-spec-validation-via-env-var branch from b88abf1 to 291c4ad Compare July 19, 2023 00:05
@chriskuehl chriskuehl merged commit ad680b6 into master Jul 19, 2023
4 checks passed
@chriskuehl chriskuehl deleted the option-to-disable-spec-validation-via-env-var branch July 19, 2023 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants