We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc37409 commit ee43748Copy full SHA for ee43748
openapi_python_client/__init__.py
@@ -270,7 +270,7 @@ def _build_api(self) -> None:
270
)
271
272
for endpoint in collection.endpoints:
273
- module_path = tag_dir / f"{snake_case(endpoint.name)}.py"
+ module_path = tag_dir / f"{utils.PythonIdentifier(endpoint.name, self.config.field_prefix)}.py"
274
module_path.write_text(endpoint_template.render(endpoint=endpoint), encoding=self.file_encoding)
275
276
0 commit comments