swagger-ts: custom transform enum keys convention #1077
Replies: 1 comment 1 reply
-
|
How good an idea is it to give transform keys via transformers.pascalCase() ? 🤔 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using the
@kubb/swagger-tsplugin to generate types. Is there an easy way to convert enum keys to PascalCase?For example, converting:
into:
So far, I see a solution involving the
typescript-ast(https://nabeelvalley.co.za/docs/javascript/typescript-ast/), in the form of a separate script that will execute onhooks.done. Maybe I'm missing something and there are better solutions?Beta Was this translation helpful? Give feedback.
All reactions