Kreya
Kreya copied to clipboard
Hide empty fields in responses
The response when converted to JSON contain field types that should or could be hidden.
- Empty strings, ie
"version": "" XXX_UNSPECIFIEDenum 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.
Thank you for your feature request. This sounds like a great enhancement for Kreya. We added it to our backlog.