mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 10:26:28 +00:00
api_docs: Detect missing arguments in curl examples.
This commit adds automated tests that make sure that every curl example command in our API docs has the '-X (POST|GET)' argument. Fixes: #11927
This commit is contained in:
@@ -124,6 +124,7 @@ class MarkdownDirectoryView(ApiURLView):
|
||||
# An "article" might require the api_uri_context to be rendered
|
||||
api_uri_context = {} # type: Dict[str, Any]
|
||||
add_api_uri_context(api_uri_context, self.request)
|
||||
api_uri_context["run_content_validators"] = True
|
||||
context["api_uri_context"] = api_uri_context
|
||||
return context
|
||||
|
||||
|
||||
Reference in New Issue
Block a user