Go boolean types can sometimes conflict with serialization when a boolean value is not required. In this case, a value false would not be sent as it triggers omitempty. Using a pointer type makes sure the value is only omitted when nil, and not when false.
Go boolean types can sometimes conflict with serialization when a boolean value is not required. In this case, a value
false
would not be sent as it triggersomitempty
. Using a pointer type makes sure the value is only omitted whennil
, and not whenfalse
.Fixes https://github.com/swagger-api/swagger-codegen/issues/7391