OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
[ ] [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
Generated method with response/return of type array is missing the array and instead only using the wrapped object. The following locations are affected:
Seems like it's due to the hardcoded content schema definition in api.mustache. Seems like the same goes for the kotlin-spring module in apiInterface.mustache.
Bug Report Checklist
Description
Generated method with response/return of type
array
is missing the array and instead only using the wrapped object. The following locations are affected:@ApiResponse
expected:
actual:
exampleString
expected:
actual:
additional notes
List<ReturnArrayGet200ResponseInner>
openapi-generator version
v6.0.1
OpenAPI declaration file content or url
Generation Details
Generated via openapi-generator-maven-plugin:
Steps to reproduce
test.yml
into itsapi
directorypom.xml
mvn clean package
ReturnArrayApi.java
Suggest a fix
The Mustache files responsible for the marked locations might ignore the array type or detect it incorrectly.