bugdown: Don't show path params as data in curl example.

With test added by tabbott.
This commit is contained in:
Vishnu Ks
2019-10-03 13:02:51 +00:00
committed by Tim Abbott
parent bfd5f4066a
commit 30ad650afb
2 changed files with 39 additions and 2 deletions

View File

@@ -138,6 +138,8 @@ def generate_curl_example(endpoint: str, method: str,
lines.append(" -u %s:%s" % (auth_email, auth_api_key))
for param in openapi_params:
if param["in"] == "path":
continue
param_name = param["name"]
if param_name in exclude:
continue