swagger-codegen-generators
swagger-codegen-generators copied to clipboard
fix(go): make sure boolean types are created as pointer types
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