JSON output of CLI commands includes empty fields that should be omitted #5523
Labels
help wanted
Issues with this label are ready to start work but are in need of someone to do it
priority/backlog
Issue is approved and in the backlog
We use
cliprinter.PrintProto
to print Protobuf messages in JSON format.Even if the Protobuf message specifies
omitempty
for a field, empty fields are still printed.We should honor the
omitempty
property.The text was updated successfully, but these errors were encountered: