Converting snake_case to CamelCase: what will be the best approach? #1430
-
Hi :) I'm currently working on replacing the view layer of a RoR project to React SPA. The team is furious seeing snake_case in JS code 😆 we found a way to convert the case in runtime with Axios middleware, now I need my types to match the actual axios output. What will be the best way to approach this with Kubb? Should I make a PR for a new option in config, or it'd be better to create my own plugin based on plugin-ts? Or can generators help me here (I only saw the examples of adding new files with them, not hooking into the generation)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@grreeenn hi, maybe this library could help in already formatting to format that Kubb understands: https://github.com/thim81/openapi-format. If the change of casing does not work, we could have a look in changing Kubb. |
Beta Was this translation helpful? Give feedback.
@grreeenn hi, maybe this library could help in already formatting to format that Kubb understands: https://github.com/thim81/openapi-format. If the change of casing does not work, we could have a look in changing Kubb.