tutone icon indicating copy to clipboard operation
tutone copied to clipboard

fix(typegen): do not use `omitempty` in json tags for boolean values

Open sanderblue opened this issue 2 years ago • 0 comments

In some API scenarios, omitting a false value from serialized JSON causes the field to be ignored by the API. By removing omitempty from the JSON tags, this ensures a boolean value is always present.

Related to newrelic/newrelic-client-go #959

sanderblue avatar Nov 28 '22 22:11 sanderblue