Skip to content

Commit

Permalink
handling for the broken parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
michilu committed May 17, 2019
1 parent 189321f commit 2164427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http_prompt/context/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, url=None, spec=None):
self.root.add_path(*path_tokens)
endpoint = paths[path]
for method, info in endpoint.items():
params = info.get('parameters')
params = getattr(info, 'parameters', [])
if params:
for param in params:
if param.get('in') != 'path':
Expand Down

0 comments on commit 2164427

Please sign in to comment.