-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Support optional singleRequestParameter #18467
Conversation
https://github.com/OpenAPITools/openapi-generator/actions/runs/8798721887/job/24147516590?pr=18467 already fixed in the master cc TypeScript technical committee for review @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) @davidgamero (2022/03) @mkusaka (2022/04) |
https://github.com/OpenAPITools/openapi-generator/actions/runs/8798721887/job/24147516590?pr=18467 already fixed in the master |
Woohoo 🥳 Deployment estimations? Or: when will it hit https://hub.docker.com/r/openapitools/openapi-generator-cli? Doesn't seam to be part of 7.6.0-Snapshot, yet. |
i think it should soon be part of the snapshot |
What kind of soon are you talking about? Minutes? Hours? Days? Thank you! :) |
So... Shouldn't it be part of the image, yet? Edit: oh my ... was just my compose file not pulling the latest |
Hi @angelaki, your change doesn't make any sense, because CodegenModel There is another property |
Haha... yes, that explains a lot. I lately noticed that all arguments are optional now (what imho is still better than the old behavior, where I had to but an empty object with thousant of call that don't have any mandatory parameters) and wanted to check it these days. @wing328 did that change and recommended to use that value, maybe ask him? |
Hi! I just ran into the problem that all request params are optional, even if they are marked required in the spec when generating useSingleRequestParameter. Are there any plans on fixing this behavior? |
@qirex do you want to implement a fix? |
I have no clue about the software stack used in this project. So I am not sure if I can be much of help. |
Fixes #18456. Add optional chaining to singleRequestParameter, if all parameters are optional.