diff --git a/openapi_python_client/parser/openapi.py b/openapi_python_client/parser/openapi.py index c04cd1e8b..453e9c77a 100644 --- a/openapi_python_client/parser/openapi.py +++ b/openapi_python_client/parser/openapi.py @@ -26,7 +26,7 @@ from .properties.schemas import parameter_from_reference from .responses import Response, response_from_data -_PATH_PARAM_REGEX = re.compile("{([a-zA-Z_][a-zA-Z0-9_]*)}") +_PATH_PARAM_REGEX = re.compile("{([a-zA-Z_-][a-zA-Z0-9_-]*)}") def import_string_from_class(class_: Class, prefix: str = "") -> str: