Bug Report Checklist
Description
wherever deserialisation is performed, option DisallowUnknownFields is set
|
d.DisallowUnknownFields() |
. This means that if an API is being extended on a server and fields are added. Although this should not be a breaking change, this leads to all clients failing parsing server responses.
Suggest a fix
Either add an option to be strict or not about the schema or be more permissive and remove the DisallowUnknownFields when parsing responses
Bug Report Checklist
make the json serialisation of responses more permissive
Description
wherever deserialisation is performed, option DisallowUnknownFields is set
openapi-generator/modules/openapi-generator/src/main/resources/go-server/controller-api.mustache
Line 616 in 5eb083e
Suggest a fix
Either add an option to be strict or not about the schema or be more permissive and remove the DisallowUnknownFields when parsing responses