Skip to content

Commit

Permalink
#1 Don't crash if arguments are not provided on the api
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcs committed Jun 8, 2015
1 parent ca9fae9 commit 1e40fb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions connexion/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def add_api(self, swagger_file: pathlib.Path, base_path: str=None, arguments: di
"""
logger.debug('Adding API: %s', swagger_file)
# TODO test if base_url starts with an / (if not none)
arguments = arguments or dict()
arguments = dict(self.arguments, **arguments) # copy global arguments and update with api specfic
yaml_path = self.specification_dir / swagger_file
api = connexion.api.Api(yaml_path, base_path, arguments)
Expand Down

0 comments on commit 1e40fb8

Please sign in to comment.