openapi-typescript-codegen icon indicating copy to clipboard operation
openapi-typescript-codegen copied to clipboard

Add possibility to switch case for filenames

Open smarlhens opened this issue 3 years ago • 4 comments

Hi @ferdikoomen 👋🏻

Describe the solution you'd like Add the possibility to change the case of the file names. I personally use kebab-case + dot.case and I would like my files to have a consistency in their filenames.

Examples:

Case Core Service (with postfix) Model
PascalCase (current) BaseHttpRequest.ts FooBarService.ts FooBar.ts
PascalCase + dot.case* BaseHttpRequest.ts FooBar.Service.ts FooBar.ts
kebab-case base-http-request.ts foo-bar-service.ts foo-bar.ts
kebab-case + dot.case* base-http-request.ts foo-bar.service.ts foo-bar.ts
camelCase baseHttpRequest.ts fooBarService.ts fooBar.ts
camelCase + dot.case* baseHttpRequest.ts fooBar.service.ts fooBar.ts
snake_case base_http_request.ts foo_bar_service.ts foo_bar.ts
snake_case + dot.case* base_http_request.ts foo_bar.service.ts foo_bar.ts

*: using additional dot.case as auto-generated-name[dot]postfix[dot]extension

What do you think ?

Wish you a great day 🌞.

smarlhens avatar Feb 09 '22 21:02 smarlhens