Closed szechyjs closed 1 year ago
Hi @szechyjs do you happen to have a minimal reproducible sample of code for it? The Rule
struct is a pointer to an int32
so even if it's 0 it should be getting marshalled.
Going to go ahead and close this issue as it is quite old - if this problem persists, or you encounter any others, please file a new one!
When creating a patch that includes a
Rule
the marshalled result fails to includeVariation
if its value is0
due toomitempty
.https://github.com/launchdarkly/api-client-go/blob/master/model_rule.go#L21
This was the first instance of this that I came across, but I'm sure there are other required fields that get omitted with zero values.