Skip to content
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

Optional body for POST/PATCH/PUT #183

Closed
WahdanZ opened this issue Jul 6, 2021 · 3 comments
Closed

Optional body for POST/PATCH/PUT #183

WahdanZ opened this issue Jul 6, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@WahdanZ
Copy link

WahdanZ commented Jul 6, 2021

I have a POST method without a Body(), which causes the following warning:
Body is null
Use @Body() annotation on your method parameter to provide a body to your request
Chopper already support that

@Post(path: '/some/path', optionalBody: true)

lejard-h/chopper#149

@Vovanella95
Copy link
Collaborator

Hi @WahdanZ ,

it's actually good idea!

We will take a look into it

@Vovanella95
Copy link
Collaborator

Hi @WahdanZ ,

I've added this feature into 2.1.0 branch.

There are just few issues left to fix and it will be released!

@fryette fryette added the enhancement New feature or request label Aug 26, 2021
@Vovanella95
Copy link
Collaborator

Hi @WahdanZ please chech 2.1.1 version. I've added support of this. Please let us know if something works wrong.

Thanks for this cool idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants