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

feat: support marshal slice type if's not proto message #7

Merged
merged 2 commits into from
Dec 20, 2020

Conversation

mingqing
Copy link
Contributor

marshals "v" into JSON if type is slice will be return "null", but expect result is "[]".

code is copy from: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/marshal_jsonpb.go#L84

Copy link
Member

@johanbrandhorst johanbrandhorst left a comment

Choose a reason for hiding this comment

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

This looks fine, but could you please add a test that shows the new behaviour?

@johanbrandhorst johanbrandhorst merged commit 0cb5531 into gogo:master Dec 20, 2020
@johanbrandhorst
Copy link
Member

Thank you for your contribution!

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.

2 participants