From dff62a240baf3f9f5cff022ce794fcc5be145894 Mon Sep 17 00:00:00 2001 From: Vishnu Ks Date: Thu, 3 Oct 2019 12:46:54 +0000 Subject: [PATCH] bugdown: Rename openapi_example_params to openapi_params in generate_curl_example. --- zerver/lib/bugdown/api_code_examples.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/lib/bugdown/api_code_examples.py b/zerver/lib/bugdown/api_code_examples.py index a6677924a9..2b0660ea16 100644 --- a/zerver/lib/bugdown/api_code_examples.py +++ b/zerver/lib/bugdown/api_code_examples.py @@ -137,8 +137,8 @@ def generate_curl_example(endpoint: str, method: str, if authentication_required: lines.append(" -u %s:%s" % (auth_email, auth_api_key)) - openapi_example_params = get_openapi_parameters(endpoint, method) - for param in openapi_example_params: + openapi_params = get_openapi_parameters(endpoint, method) + for param in openapi_params: param_name = param["name"] if param_name in exclude: continue