Bug Report Checklist
Description
Free form object property yields map[string]map[string]interface{} where it should be map[string]interface{}
openapi-generator version
4.0.1
OpenAPI declaration file content or url
components:
schemas:
Response:
type: object
properties:
payload:
type: object
additionalProperties: {}
Command line used for generation
openapi-generator-cli generate -i ../api.yaml -g go -o . -DpackageName=api -DwithGoCodegenComment
Steps to reproduce
Generate go client using given schema.
Suggest a fix
Tried changing getTypeDeclaration in AbstractGoCodegen.java to use ModelUtils.isFreeFormObject to no avail.
Also attempted changing template with no success.
Bug Report Checklist
map[string]interface{}Description
Free form object property yields
map[string]map[string]interface{}where it should bemap[string]interface{}openapi-generator version
4.0.1
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
Generate go client using given schema.
Suggest a fix
Tried changing
getTypeDeclarationinAbstractGoCodegen.javato useModelUtils.isFreeFormObjectto no avail.Also attempted changing template with no success.