mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
bugdown: Don't show path params as data in curl example.
With test added by tabbott.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user