swagger-ts: custom transform enum keys convention #1077
Unanswered
raidenmiro
asked this question in
Q&A
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
-
I am using the
@kubb/swagger-ts
plugin 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