We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b2849d commit a95fa64Copy full SHA for a95fa64
openapi_python_client/__init__.py
@@ -17,7 +17,6 @@
17
from .config import Config
18
from .parser import GeneratorData, import_string_from_class
19
from .parser.errors import GeneratorError
20
-from .utils import snake_case
21
22
if sys.version_info.minor < 8: # version did not exist before 3.8, need to use a backport
23
from importlib_metadata import version
@@ -270,7 +269,7 @@ def _build_api(self) -> None:
270
269
)
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