clay icon indicating copy to clipboard operation
clay copied to clipboard

Add emitting default values support in JSON

Open wish-master opened this issue 4 years ago • 2 comments

It will be great if I can paste some flag to generator which pass EmitDefaults value in default marshaler. This option is well discussed in that thread: https://github.com/grpc-ecosystem/grpc-gateway/issues/233 I suppose to make it optional with false as default value not to change current behavior. I'm talking about flag exactly, not to develop some custom httpruntime.Marshaler implementation and injection... If @utrack will be agree, I'll implement this feature.

wish-master avatar Mar 25 '20 15:03 wish-master

I'd be interested in this feature as well.

bullgare avatar Mar 25 '20 17:03 bullgare

It's a great idea, I believe :) I'm all for it if you'll manage to override marshaler settings per-handler, without breaking global injection.

utrack avatar Apr 01 '20 11:04 utrack