Skip to content
New issue

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

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

Already on GitHub? Sign in 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
Copy link
Collaborator Author

tmc commented Jun 17, 2016

@yugui ping

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

Successfully merging this pull request may close these issues.

3 participants