-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Swagger definitions now have type
set to object
.
#133
Swagger definitions now have type
set to object
.
#133
Conversation
While the spec does not seem to require this, the Swagger editor at http://editor.swagger.io/ gets confused and does not display the 'Try this operation' UI correctly. Many of the examples found around also specify `"type": "object"`, so this *should* be the right thing to do.
Ivan, Thanks for contributing to grpc-gateway! Your patch looks interesting. I think that in a second the build is going to fail because you need to regenerate the examples. Could you go ahead and do that to satisfy the build monster? After that happens an example of this will be available on github on a public URL and we can create a link to test it out. Looking forward to helping get this merged! |
(Un)amusingly, when I fire up
However, after a bit of fighting with the gopath set up just for this purpose :-) the golden JSONs have been rebaked and they seem similar to the output from the failed Travis job. There seems to be no other differences related to the aforementioned |
6d8d2dc
to
cde0cb6
Compare
Alright, I'm not sure how to tackle this. Travis build on Go 1.5 passes, but fails on tip, with a diff on gzipped I'm almost certain that trying to push my local copy won't help much, given the aforementioned even-larger diff (completely lacking the Thoughts? |
My understanding of that test is that if you git add those files and upload it that it should start working. Would you mind trying that really quick since it shouldn't be too painful to try? |
This is the same symptom witnessed by @kazegusuri in pull request #129. I'd say this is a broken test? EDIT: I can try, but there will be a diff. |
Pushed. I'll be going to sleep now; however I would expect that both 1.5 and tip will be broken with b31478d. |
@yugui I have been playing with this for a couple of hours and I'm unable to get it to compile the same on tip vs 1.5. Would you be willing to take a look at that test and see if there is a better way to do it? Can we maybe whitelist the byte arrays or something? I'm not sure how to fix it |
@yugui Would you be willing to propose that as a PR to the grpc-gateway repo? That way travis will fire on it and we can get it committed |
I made a PR #136. It contains only Travis configuration change. Do you want me to create another PR which contains the .pb.go changes? |
b31478d
to
a8b45dd
Compare
Thanks, all, for your work on this! I've updated this pull request by merging master. Looks like it passes now. |
LGTM 👍 |
Thank you for your contributions. |
…object Swagger definitions now have `type` set to `object`.
While the spec does not seem to require this, the Swagger editor at
http://editor.swagger.io/ gets confused and does not display the
'Try this operation' UI correctly.
Many of the examples found around also specify
"type": "object"
,so this should be the right thing to do.