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
If a consumer wants to return a byte stream, it must currently use the Response<Body> return type from the handler of an endpoint. That response can have any content, any status code, any headers, etc. and its OpenAPI description reflects that lack of structure.
It would be useful to have a way for an endpoint to return a byte stream for a particular success response code; in this case, the OpenAPI description could enumerate a streaming response media type ("application/octet-stream") while indicating structured ("application/json") for error responses.
The text was updated successfully, but these errors were encountered:
If a consumer wants to return a byte stream, it must currently use the
Response<Body>
return type from the handler of an endpoint. That response can have any content, any status code, any headers, etc. and its OpenAPI description reflects that lack of structure.It would be useful to have a way for an endpoint to return a byte stream for a particular success response code; in this case, the OpenAPI description could enumerate a streaming response media type (
"application/octet-stream"
) while indicating structured ("application/json"
) for error responses.The text was updated successfully, but these errors were encountered: