Handling 204 response codes #1410
Labels
enhancement
New feature or request
fixed
generator
Issues or improvements relater to generation capabilities.
Milestone
Where an OpenAPI operation only includes 204 in its successful responses, the generated method should be declared to effectively return void.
If at runtime, the server returns a different 2XX with a body, then we should read the body and then discard it. Failing to read the body will hang the server.
When a operation is expected to return a value, but instead returns a 204 at runtime (whether described or not), the returned value should be null.
The text was updated successfully, but these errors were encountered: