swagger-codegen-generators icon indicating copy to clipboard operation
swagger-codegen-generators copied to clipboard

fix(go): make sure boolean types are created as pointer types

Open Nkmol opened this issue 1 year ago • 0 comments

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.

Fixes https://github.com/swagger-api/swagger-codegen/issues/7391

Nkmol avatar Apr 30 '24 18:04 Nkmol