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:
Lauryn Menard
2022-01-13 17:52:46 +01:00
committed by Tim Abbott
parent 434bda01c7
commit 662fc64a65

View File

@@ -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(