diff --git a/http_prompt/context/__init__.py b/http_prompt/context/__init__.py index 35184de..7ab5dba 100644 --- a/http_prompt/context/__init__.py +++ b/http_prompt/context/__init__.py @@ -36,6 +36,8 @@ def __init__(self, url=None, spec=None): self.root.add_path(*path_tokens) endpoint = paths[path] for method, info in endpoint.items(): + if not isinstance(info, dict): + continue params = info.get('parameters') if params: for param in params: