-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent filenames in Typescript #1253
Comments
@smasala do you mind sharing a spec to reproduce the issue more easily? cc @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @nicokoenig (2018/09) |
I have a similar issue with camelCase:
but import in api service is:
I used 3.3.1 with typescript-angular generator. |
We use a .Net Core backend with Swashbuckle generator. We have classes like Version 3.2.3 didn't have this issue (filenames didn't get the underscore). |
@andrehaveman I've merged the PR by @smasala into master. Can you give it a try using the SNAPSHOT version or the docker image? |
@wing328 did this really make it into 3.3.3? The dock hub image generates wrong file names still but locally on master branch it is correct with the same spec. |
Description
When using the argument
fileNaming=kebab-case
, the names in the api services are inconsistent with the actual filenames.Api:
MySetType1Type2 -> my_set_type1_type2
Filename:
mysettype1_type2
openapi-generator version
3.3.1
Steps to reproduce
Declarations which include special characters (#1137) and generate with:
fileNaming=kebab-case
The text was updated successfully, but these errors were encountered: