Kreya icon indicating copy to clipboard operation
Kreya copied to clipboard

Hide empty fields in responses

Open seime opened this issue 2 years ago • 1 comments

The response when converted to JSON contain field types that should or could be hidden.

  • Empty strings, ie "version": ""
  • XXX_UNSPECIFIED enum values (ordinal 0) , ie "status": "STATUS_ENUMERATION_UNSPECIFIED" when following the official style guide https://protobuf.dev/programming-guides/style/#enums
  • Empty repeated fields/arrays, ie "validBetween": []

For some users I recon this is useful information, but for others this is just noise. Therefore I propose a config parameter to show/hide these empty fields.

seime avatar Jan 24 '23 09:01 seime

Thank you for your feature request. This sounds like a great enhancement for Kreya. We added it to our backlog.

CommonGuy avatar Jan 25 '23 09:01 CommonGuy