Skip to content

Commit

Permalink
Merge pull request #399 from Yelp/option-to-disable-spec-validation-v…
Browse files Browse the repository at this point in the history
…ia-env-var

Add option to set validate_swagger_spec default via environment variable
  • Loading branch information
chriskuehl authored Jul 19, 2023
2 parents 48ffe82 + 291c4ad commit ad680b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bravado_core/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ad680b6

Please sign in to comment.