oatpp / oatpp-swagger

OpenApi 3.0.0 docs + Swagger UI for oatpp services
https://oatpp.io/
Apache License 2.0
95 stars 54 forks source link

Add support to generator for generating a response with no body (e.g. 204) #52

Closed JeremyGuinn closed 3 years ago

JeremyGuinn commented 3 years ago

The current method for adding a response mandates a schema type, status, and a contentType. It would be necessary to have an additional method for generating a response with only a status code and optional description.

rfc7230 - Message Body:

All 1xx (Informational), 204 (No Content), and 304 (Not Modified) responses do not include a message body. All other responses do include a message body, although the body might be of zero length.