Skip to content

Commit

Permalink
Add compatability_layer back to specification
Browse files Browse the repository at this point in the history
  • Loading branch information
wasbazi committed Apr 22, 2016
1 parent 5057f7f commit bb7c68f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion connexion/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb7c68f

Please sign in to comment.