-
-
Notifications
You must be signed in to change notification settings - Fork 395
Remove unnecessary camel case conversion for query params #701
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
Remove unnecessary camel case conversion for query params #701
Conversation
Could you rebase to latest main branch? |
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? |
I got the same issue ... please merge the PR |
61ddfcc
to
887d139
Compare
🦋 Changeset detectedLatest commit: 0a71f2b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
887d139
to
0a71f2b
Compare
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.