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

write query parameters to swagger definition #199

Closed
wants to merge 2 commits into from
Closed

write query parameters to swagger definition #199

wants to merge 2 commits into from

Conversation

rgarcia
Copy link
Contributor

@rgarcia rgarcia commented Jul 22, 2016

addresses #159

@achew22
Copy link
Collaborator

achew22 commented Jul 25, 2016

Rafael,

Thanks so much for sending in a patch! It looks like the build monster is unhappy because your change modifies the output for the example. grpc-gateway has the examples folder checked in and verifies that there is no difference between the checked in version and what comes out during CI. It looks like your change also needs to be rebased onto the latest master.

Thanks again!

@rgarcia
Copy link
Contributor Author

rgarcia commented Jul 25, 2016

@achew22 regenerated the examples and rebased. Tests are passing now.

@@ -13,6 +13,49 @@ import (
"github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor"
)

// messageToQueryParameters converts a message to a list of swagger query parameters.
func messageToQueryParameters(message *descriptor.Message, reg *descriptor.Registry, pathParams []descriptor.Parameter) ([]swaggerParameterObject, error) {
var parameters []swaggerParameterObject
Copy link
Member

Choose a reason for hiding this comment

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

It was even better if you make variable names a bit shorter.
https://github.com/golang/go/wiki/CodeReviewComments#variable-names

@tmc
Copy link
Collaborator

tmc commented Jul 28, 2016

@rgarcia can you rebase this again?

@rgarcia
Copy link
Contributor Author

rgarcia commented Jul 29, 2016

Hey, sorry. Probably won't be able to get back to this until early next week.

@sdemos
Copy link
Contributor

sdemos commented Aug 8, 2016

What are the chances of this getting merged soon? This is a feature that we would definitely like to have.

@achew22
Copy link
Collaborator

achew22 commented Sep 10, 2016

@rgarcia are you still interested in getting this merged?

@rgarcia
Copy link
Contributor Author

rgarcia commented Sep 12, 2016

@achew22 sorry, our team took a different direction, so I don't think I can do the follow-up to get this merged.

@achew22
Copy link
Collaborator

achew22 commented Sep 12, 2016

@rgarcia, would you object to me taking over this PR and applying the changes?

Note to people following along, if I haven't pushed a PR by Friday assume that I've fallen in a black hole and you can take a whack at it if you want

@rgarcia
Copy link
Contributor Author

rgarcia commented Sep 12, 2016

@achew22 go for it!

@ghost
Copy link

ghost commented Dec 1, 2016

What is missing for this to be merged? Just to answer the question on deeply nested?

@jhayotte
Copy link

jhayotte commented Dec 1, 2016

Waiting this PR to be merged too! This feature is highly wanted!

@doroginin
Copy link
Contributor

Is there any chance to merge this pull request?

@tmc
Copy link
Collaborator

tmc commented Feb 17, 2017

closed by #297

@tmc tmc closed this Feb 17, 2017
adasari pushed a commit to adasari/grpc-gateway that referenced this pull request Apr 9, 2020
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.

7 participants