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

Allows the Ruby json marshaller to be passed json marshal options #4252

Merged
merged 1 commit into from
May 22, 2018

Conversation

ebenoist
Copy link
Contributor

@ebenoist ebenoist commented Jan 30, 2018

The JSON marshaller accepts both the preseve_field_names and emit_defaults options in the C bindings, but these options are not easily exposed to the Ruby encode/decode methods. This PR adds an options hash, empty by default, that can be used to pass options at runtime.

@grpc-kokoro
Copy link

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

1 similar comment
@grpc-kokoro
Copy link

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

@ebenoist ebenoist changed the title Allows the json marshaller to be passed json marshal options Allows the Ruby json marshaller to be passed json marshal options Jan 31, 2018
@ebenoist
Copy link
Contributor Author

Fixes #4052 as well

@ebenoist
Copy link
Contributor Author

ebenoist commented Apr 28, 2018

This is a simple change that complies better with Ruby's native to_json function and better exposes some of the marshal options that the Ruby proto library already supports.

What is the process to get a review of this change?

@anandolee
Copy link
Contributor

ping @TeBoring

1 similar comment
@xfxyjwf
Copy link
Contributor

xfxyjwf commented May 21, 2018

ping @TeBoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants