-
Notifications
You must be signed in to change notification settings - Fork 50
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
DELETE doesn't propagate the body #225
Comments
A proposed PR here: #226 |
I've also run into this issue. I was curious if there was an plan to merge the posted PR (or similar). Thank you! |
Open to merging a fix. From what i recall, it wasn't clear what that PR was doing, and requests for clarification or tests were ignored. |
I agree that the current PR could use some tweaks. I added a couple of comments to the PR with what I think is going on and a suggestion for improving the PR. I have not cloned the repo though, and I'm definitely not an expert in code generation, so take it with a grain of salt. tl;dr;
|
The HTTP DELETE method supports a body, as defined in https://www.rfc-editor.org/rfc/rfc7231#section-4.3.5:
But the code generator simply ignores it. It should be easy to fix by changing this line of code: https://github.com/cjbooms/fabrikt/blob/master/src/main/kotlin/com/cjbooms/fabrikt/generators/client/OkHttpSimpleClientGenerator.kt#L212
The text was updated successfully, but these errors were encountered: