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
$ go mod init repro
$ go get github.com/ogen-go/ogen/cmd/ogen
$ go run github.com/ogen-go/ogen/cmd/ogen --target gen/api -package api --clean openapi.yaml
$ go mod tidy
Create a main.go file with the following contents.
What version of ogen are you using?
Can this issue be reproduced with the latest version?
Yes
What did you do?
Consider the following schema. Save it as
openapi.yaml
.Run the following terminal commands
Create a
main.go
file with the following contents.Click to view server implementation
Finally, start the server.
What did you expect to see?
Client can stream the response. e.g.
What did you see instead?
The generated code in
oas_response_encoders_gen.go
looks like the following.Click to view generated code
The call to
io.Copy
prevents streaming of response. This results in clients not receiving data.The text was updated successfully, but these errors were encountered: