From 291c4ad0b7bc24ce179e60d42555ec54fd838f69 Mon Sep 17 00:00:00 2001 From: Chris Kuehl Date: Tue, 18 Jul 2023 13:20:57 -0700 Subject: [PATCH] Add option to set validate_swagger_spec default via environment variable --- bravado_core/spec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bravado_core/spec.py b/bravado_core/spec.py index 00ba35b5..d4f4d021 100644 --- a/bravado_core/spec.py +++ b/bravado_core/spec.py @@ -65,7 +65,7 @@ 'validate_requests': True, # Use swagger_spec_validator to validate the swagger spec - 'validate_swagger_spec': True, + 'validate_swagger_spec': os.environ.get("BRAVADO_CORE_SKIP_SPEC_VALIDATION") != "1", # Use Python classes (models) instead of dicts for #/definitions/{models} # On the client side, this applies to incoming responses.