You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
For certain cases of javascript ecosystem interoperability it may be required to control certain behaviors for how json is rendered. protojson offers this via the MarshalOptions
Describe the solution you'd like
Offer the ability to either inject codec specific options via middleware and/or set default configuration on service startup.
Describe alternatives you've considered
Implementing a custom codec that does the same thing as the canonical json codec with the added ability to inject marshal options.
Additional context
It seems like the most useful options from the perspective of how data is rendered are EmitUnpopulated, EmitDefaultValues
The text was updated successfully, but these errors were encountered:
We've gotten a lot of feedback that folks would like to see that functionality in this core package and are taking it under consideration. In the meantime, there is a high-quality implementation of what you're looking for in this 3rd party package: https://github.com/akshayjshah/connectproto
Is your feature request related to a problem? Please describe.
For certain cases of javascript ecosystem interoperability it may be required to control certain behaviors for how json is rendered.
protojson
offers this via the MarshalOptionsDescribe the solution you'd like
Offer the ability to either inject codec specific options via middleware and/or set default configuration on service startup.
Describe alternatives you've considered
Implementing a custom codec that does the same thing as the canonical json codec with the added ability to inject marshal options.
Additional context
It seems like the most useful options from the perspective of how data is rendered are
EmitUnpopulated
,EmitDefaultValues
The text was updated successfully, but these errors were encountered: