-
-
Notifications
You must be signed in to change notification settings - Fork 436
feat: added output.overrides.namingConvention param to orval config, … #2125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat: added output.overrides.namingConvention param to orval config, … #2125
Conversation
…added enum functionality depending on namingConvention config param
@melloware FYI, based on this discussion Also, writing this new config parameter as 6th function parameter looks like a bad idea to me, but I didn't came up with a better solution considering existing params 🥲 |
add @AllieJonsson as the most recent committer in this area of code! |
ok looks like the build is failing |
yep, I haven't ran or test it yet. had some issues with packages installation or so, so decided to continue tomorrow. |
@dlohvinov bump? |
@melloware, yep, I remember. Sorry, I'm having too much job workload and just haven't had enough time yet 🫠🫠 Are there any other issues or feature requests related to this feature and it would be great for me to speed up, or I can take some time? |
@dlohvinov just checking in and can you comment on this ticket so I can assign it to you: #2126 |
c19e1fa
to
a77ada0
Compare
…" type (`false` -> `undefined`)
a77ada0
to
e6a6335
Compare
@melloware , hi!
Had some issues with package installation, generated samples formatting, so I'm not sure, should I commit my manual testing diffs. Manually I've tested using samples/basic. // samples/basic/orval.config.ts
export default defineConfig({
/*
not sure why, but 2nd config entry override didn't work
without commenting 1nd entry (guess, that's not a bug but I'm just lucking understanding, yet) 🤔
'petstore-file': {
input: './petstore.yaml',
output: './api/endpoints/petstoreFromFileSpecWithConfig.ts',
},
*/
'petstore-file-transfomer': {
output: {
// ...
override: {
namingConvention: {
enum: 'PascalCase', // !!
},
// ... |
btw, key |
Running build |
@melloware , thanks! |
Looking good now I think all you need to do is update the /docs for this new configuration explaining the options and what it does! |
…added enum functionality depending on namingConvention config param
Status
WIP
Fix #2126
Fix #2120
Description
Added
output.overrides.namingConvention
->output.overrides.namingConvention.enum
config options and implemented generated enum keys conversion depending on this config parameter.Related PRs
--
Todos
Steps to Test or Reproduce
// TODO