gowsdl icon indicating copy to clipboard operation
gowsdl copied to clipboard

Omitempty is assumed

Open denysvitali opened this issue 3 years ago • 0 comments

When the WSDL is parsed, the resulting struct looks like following by default:

IncludeABC bool `xml:"includeABC,omitempty" json:"includeABC,omitempty"`

Unfortunately for requests (especially with bools), omitting the value when is false is not always a good idea since not all the implementations have false as the default.

This should anyways only affect XYZRequest structs.

denysvitali avatar Dec 10 '20 16:12 denysvitali