We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://stackoverflow.com/questions/34716238/golang-protobuf-remove-omitempty-tag-from-generated-json-tags The zero vaule of field be omited, I remove omitempty flag in struct, but it do not work in reponse
The text was updated successfully, but these errors were encountered:
You can override global marshaler using httpruntime:
https://github.com/utrack/clay/blob/master/transport/httpruntime/mjson.go#L13
httpruntime.OverrideMarshaler("application/json",httpruntime.MarshalerPbJSON{ Marshaler: &runtime.JSONPb{EmitDefaults: true}, Unmarshaler: &runtime.JSONPb{}, GogoMarshaler: &gogojsonpb.Marshaler{EmitDefaults:true}, GogoUnmarshaler: &gogojsonpb.Unmarshaler{}, })
Sorry, something went wrong.
I will prepare #84 After closing that issue you'll be able to configure this param
No branches or pull requests
https://stackoverflow.com/questions/34716238/golang-protobuf-remove-omitempty-tag-from-generated-json-tags
The zero vaule of field be omited, I remove omitempty flag in struct, but it do not work in reponse
The text was updated successfully, but these errors were encountered: