-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
fix: revert e340527 - removed forced renaming query params to camelCase #701
base: main
Are you sure you want to change the base?
Conversation
Could you rebase to latest main branch? |
6a3c159
to
ed4a65a
Compare
ed4a65a
to
61ddfcc
Compare
@smorimoto Hi! Rebase done. Thank you so much for taking over maintenance of this project! |
Is anything keeping this from being released? @smorimoto |
Hello, this is a blocker for us to upgrade to v13 version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 1 out of 4 changed files in this pull request and generated no suggestions.
Files not reviewed (3)
- tests/spec/dot-path-params/snapshots/basic.test.ts.snap: Language not supported
- tests/spec/sortTypes-false/snapshots/basic.test.ts.snap: Language not supported
- tests/spec/sortTypes/snapshots/basic.test.ts.snap: Language not supported
this is blocker for me too |
Still no response? |
There was a change introduced in the 13.0.0 major release. Since that release all query parameter names are being renamed into
camelCase
. It is a way wrong behavior.Why is it wrong? Say, a backend server expects a query parameter called
a.b
. In the Swagger schema provided by that server, that query parameter is also calleda.b
. Whenswagger-typescript-api
generates types, it renames the query parameter toaB
but does not provide any runtime transform. When user passesaB
query parameter, the server obviously cannot recognize it, as it expectsa.b
.I cannot understand what task is being solved with that change. Renaming query parameters is not valid at all and breaks logic.
It was suggested in #460. After it was released, numerous users also compained that their clients are generated wrongly.
My PR reverts that change.