-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
why response use enum's name #970
Comments
You can configure your JSON marshaller to output enums as ints. m := runtime.JSONPb{
EnumsAsInts: true,
}
mux := runtime.NewServeMux(runtime.WithMarshalerOption("*", &m)) |
@johanbrandhorst it works, thank you so much! :-) |
@t2krew I'm glad it worked for you, but in the future please read the issue template and reach out to us on gophers slack (#grpc-gateway) instead of opening issues. This would've saved us both a lot of time. |
@johanbrandhorst ok, i will. Thanks again |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have rewrote code with grpc-gateway, but got the different response.
this is the response what i want:
but now i got :
the code in response I use the enum.
and this is my .proto's enum
how to solve this ?
The text was updated successfully, but these errors were encountered: