Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

generate swagger output for streaming endpoints with a basic note #183

Merged
merged 2 commits into from
Jul 11, 2016

Conversation

tmc
Copy link
Collaborator

@tmc tmc commented Jun 14, 2016

No description provided.

@yugui
Copy link
Member

yugui commented Jun 14, 2016

LGTM, but could you update the generated files as well?

@@ -387,13 +389,17 @@ func renderServices(services []*descriptor.Service, paths swaggerPathsObject, re
}

methProtoPath := protoPathIndex(reflect.TypeOf((*pbdescriptor.ServiceDescriptorProto)(nil)), "Method")
desc := ""
if meth.GetServerStreaming() {
desc += "(streaming responses)"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this make swagger generate a streaming client?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@achew22 swagger spec doesn't address streaming endpoints (yet) there's some discussion on the openapi repo.

@tmc tmc force-pushed the swagger_streaming branch from 59ed879 to 787aa12 Compare June 14, 2016 18:20
@tmc tmc force-pushed the swagger_streaming branch from 787aa12 to e9dca89 Compare June 14, 2016 19:01
@tmc
Copy link
Collaborator Author

tmc commented Jun 17, 2016

@yugui ping

@yugui yugui merged commit dffa18a into grpc-ecosystem:master Jul 11, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants