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

Is there any way to let json int32 can not accept string in grpc-gateway? #1029

Closed
4 tasks
pluto-treehole opened this issue Sep 4, 2019 · 2 comments
Closed
4 tasks

Comments

@pluto-treehole
Copy link

The gRPC-Gateway project is maintained by volunteers in their spare time. Please follow these troubleshooting steps before submitting an issue.

  • Check if your issue has already been reported (https://github.com/grpc-ecosystem/grpc-gateway/issues).
  • Update your protoc to the latest version.
  • Update your copy of the grpc-gateway library to the latest version from github:
    go get -u github.com/grpc-ecosystem/grpc-gateway
  • Delete the protoc-gen-grpc-gateway and protoc-gen-swagger binary from your PATH,
    and reinstall the latest versions:
    go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
    go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger

I still have a problem!

Please consider reaching out for help on a chat forum, such as
Gophers Slack (channel #grpc-gateway).
It's much easier to help with common debugging steps in a chat, and some of
the maintainers are reading the channel regularly. If you
submit an issue which is clearly an environment setup problem, or it's obvious
you haven't tried seeking help somewhere else first, we may close your issue.

I still have a problem!

Please follow these steps to submit a bug report:

Bug reports:

Fill in the following sections with explanations of what's gone wrong.

Steps you follow to reproduce the error:

<!-- Example steps
1.  I grab my catapult
2.  I load it with lettuce
3.  Press the fire button
4.  It falls over
-->

Your steps here.

What did you expect to happen instead:

<!-- Example answer
1.  It would have rained lettuce from the sky bringing forth a cuddly army of bunnies we could
    play with
-->

Your answer here.

What's your theory on why it isn't working:

<!-- Example answer
Evil wizards are hoarding the bunnies and don't want to share. The wizards are casting 
lettuce protection spells so the cattapult won't work.
-->

Your theory here.

@pluto-treehole pluto-treehole changed the title Is there any way to let json int32 can not accept string in grpac-gateway? Is there any way to let json int32 can not accept string in grpc-gateway? Sep 4, 2019
@pluto-treehole
Copy link
Author

I defined my field to int32 But the string type can also receive.
I checked the official documentation and found the following paragraph.
image
So is there any way to let json int32 can not accept string in grpc-gateway?

@achew22
Copy link
Collaborator

achew22 commented Sep 4, 2019

@hexinn, please in the future follow our bug filing template. There is a lot of great information in there and it helps us triage.

Issues are not the forum that use for questions like this. Please go to the gopher's slack channel and ask in there.

@achew22 achew22 closed this as completed Sep 4, 2019
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

No branches or pull requests

2 participants