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
JsonFormat.printer() does not print fields set to their defaults, e.g. integers that are 0, booleans that are false, strings that are empty. This is causing confusion in some of our API responses(when users can see the json response from a browser).
We might want to consider using the Printer.includingDefaultValueFields() option, but I suppose we had a reason not to use it in the first place?
The text was updated successfully, but these errors were encountered:
JsonFormat.printer() does not print fields set to their defaults, e.g. integers that are 0, booleans that are false, strings that are empty. This is causing confusion in some of our API responses(when users can see the json response from a browser).
We might want to consider using the
Printer.includingDefaultValueFields()
option, but I suppose we had a reason not to use it in the first place?The text was updated successfully, but these errors were encountered: