From bb7c68f179acd64ded8b2c433883b3b0b108f6d0 Mon Sep 17 00:00:00 2001 From: Avi Weinstock-Herman Date: Fri, 22 Apr 2016 09:59:38 -0600 Subject: [PATCH] Add compatability_layer back to specification --- connexion/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/connexion/api.py b/connexion/api.py index 61e736625..e15d2de9f 100644 --- a/connexion/api.py +++ b/connexion/api.py @@ -88,9 +88,10 @@ def __init__(self, swagger_yaml_path, base_url=None, arguments=None, logger.debug('Read specification', extra=self.specification) + self.specification = compatibility_layer(self.specification) # Avoid validator having ability to modify specification spec = copy.deepcopy(self.specification) - validate_spec(compatibility_layer(spec)) + validate_spec(spec) # https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#fixed-fields # If base_url is not on provided then we try to read it from the swagger.yaml or use / by default