-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[REQ] [Typescript] Support DELETE Payload #13380
Comments
Oh gosh, this reminds me something 🤦 😅 😂 |
Was anything wrong with your PR? Why is Codegen back to post / put / ... ? |
I guess something was lost with all the forks & merge when OpenApiTools & SwaggerApi were not yet aligned 😅 |
So you obviously totally agree on changing the method used? Could you maybe patch it again? I would be endlessly thankfull, pretty much need a DELETE body. |
Hey @cmalard, any chance you could fix this, soon? 🙄 It seams like many issues were caused by just not using the request method (fixed DELETE method forth and back and so on ...) plus I'd really need it these days. And I'm actually quite scred I'd need to do this myself ... 😂🙈 |
Hey @angelaki 🙋 I will also need it in the next weeks (again for another project 😂), if you want it asap, don't wait for me & feel free to do it 😉 🍻 |
I'll take a stab at implementing it (via the "HttpClient#request" method under the hood) over the weekend |
Thank you so much! Reading your PR I just noticed that @cmalard initial fix was actually for SwaggerCodGen, not for OpenAPIGenerator 😂. Never the less it's fixed now, great! :) When while this fix probably make it to the Docker CLI? |
@angelaki you can wait for the 6.1.1 release (planned for Oct 11). Or you can use the |
@amakhrov the latest version
still seams to generate using the old methods. |
@angelaki I think it should be in the 6.1.1 snapshot: https://github.com/OpenAPITools/openapi-generator#11---compatibility |
this runs whatever version already exists in your cache (or downloads one if it's the first time use).
|
@amakhrov I was actually running latest, just simplified it. Maybe I shouldn't have. Never the less, latest is version Edit: I actually needed to manually pull it. I thought Docker always checks for the latest version with the tag provided? Interesting ... |
@angelaki did everything work for you then? |
@amakhrov yes, looks pretty good, thank you so much! |
Completly off-topic, but maybe you can answer this question: how to retrieve
having this swagger json:
Cannot call it with 'blob' since no overload accepts this. Create a new issue? Guess someone would have noticed yet, if this wasn't possible? 😅 |
Not sure what exactly you try to do. |
Like discussed in #10976 the possibility to add a payload to the DELETE method was removed. I'd suggest to completely switch to Angular HttpClient's
request
method (instead of get / post / put e.g.). All the other methods are just overloads to the request method.This way the generator would be less dependent on Angulars API. I hope this is easy to implement for someone here knowing the mustache templates? I've checked it but it pretty much felt like I'd need some more knowledge of the generator's code.
The text was updated successfully, but these errors were encountered: