Bug Report Checklist
Scalatra server template generating wrong default value new null[]() instead of 'List[String].emptydue missedarray` instantiationType
Description
openapi-generator version
2.3.0-SNAPSHOT
OpenAPI declaration file content or url
https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml
Command line used for generation
Steps to reproduce
regenerate scalatra server - default value has incorrect value new null[](). should be List[String].empty
Related issues/PRs
Related code 25036e4#diff-62e3a15550247bb6a76bdc7745faa850R265
Suggest a fix
Add instantiationTypes.put("array", "List"); at abstract level or per template if array has specific meaning
@jimschubert
Bug Report Checklist
Scalatra server template generating wrong default value
new null[]()instead of 'List[String].emptydue missedarray` instantiationTypeDescription
openapi-generator version
2.3.0-SNAPSHOTOpenAPI declaration file content or url
https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml
Command line used for generation
Steps to reproduce
regenerate scalatra server - default value has incorrect value
new null[](). should beList[String].emptyRelated issues/PRs
Related code 25036e4#diff-62e3a15550247bb6a76bdc7745faa850R265
Suggest a fix
Add
instantiationTypes.put("array", "List");at abstract level or per template if array has specific meaning@jimschubert