-
-
Notifications
You must be signed in to change notification settings - Fork 284
Open
Labels
feature 🚀Feature request.Feature request.vote 📩React to indicate interest or agreement.React to indicate interest or agreement.
Description
Description
On the old openapi-typescript-codegen repo, I opened a PR to add a --transformCase flag which seemed pretty popular. Would y'all be willing to accept a similar PR?
Much like the original requester in ferdikoomen/openapi-typescript-codegen#1252, our company has a large API that returns keys in snake case, but we convert them to camel case on the frontend using a bit of middleware in our fetch functions. The types generated from our OpenAPI specs are in snake case, which means we can't use them.
For example, if the original file was in snake case:
type MyModel {
foo_bar: string;
}Using --transformCase camel would convert it to:
type MyModel {
fooBar: string;
}arka-na, OskarAsplin, gregbrowndev, mcastagnetti, himself65 and 37 more
Metadata
Metadata
Assignees
Labels
feature 🚀Feature request.Feature request.vote 📩React to indicate interest or agreement.React to indicate interest or agreement.