You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think It would be useful not only for fast scaffolding but for writing test tests also
of course I could be getting body the old way in the function but I will need to change the function footprint when adding @Body(schema) decorator
Thanks in advance!
The text was updated successfully, but these errors were encountered:
The purpose of the body decorator is to generate the documentation. If you don't pass a schema, then it is not possible to generate documentation, so there is no purpose to use this decorator. In that case you can just don't specify a body and get the JSON data directly in the endpoint.
Hey @miguelgrinberg great work on this lib I'm a big fan
I'm fast scaffolding an API and I think it would be useful if the body decorator could return just the request.data
like:
I think It would be useful not only for fast scaffolding but for writing test tests also
of course I could be getting body the old way in the function but I will need to change the function footprint when adding @Body(schema) decorator
Thanks in advance!
The text was updated successfully, but these errors were encountered: