mirror of
https://github.com/zulip/zulip.git
synced 2025-10-25 00:53:56 +00:00
api_docs: Update regex for generating code example fixture.
Updates regex in the openapi markdown extension to match api endpoint names that contain dashes, which is the case for `zulip-outgoing-webhook` and `rest-error-handling`.
This commit is contained in:
committed by
Tim Abbott
parent
434bda01c7
commit
662fc64a65
@@ -31,7 +31,7 @@ from zerver.openapi.openapi import (
|
||||
openapi_spec,
|
||||
)
|
||||
|
||||
API_ENDPOINT_NAME = r"/[a-z_/-{}]+:[a-z]+"
|
||||
API_ENDPOINT_NAME = r"/[a-z_\-/-{}]+:[a-z]+"
|
||||
API_LANGUAGE = r"\w+"
|
||||
API_KEY_TYPE = r"fixture|example"
|
||||
MACRO_REGEXP = re.compile(
|
||||
|
||||
Reference in New Issue
Block a user