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
When generating a object with an array of array member the generated code is List<List>.
This does not compile because of this error:
error CS0305: Using the generic type 'List<T>' requires 1 type arguments
Note that if I don't use $ref (the manualPairStream) the generated code works as it's List<List<int>>
Bug Report Checklist
Description
When generating a object with an array of array member the generated code is
List<List>
. This does not compile because of this error:error CS0305: Using the generic type 'List<T>' requires 1 type arguments
Note that if I don't use $ref (the manualPairStream) the generated code works as it's
List<List<int>>
openapi-generator version
6.0.0-SNAPSHOT
OpenAPI declaration file content or url
Generation Details
podman run --rm -v ${PWD}:/local docker.io/openapitools/openapi-generator-cli generate -i /local/swagger.yaml -g csharp-netcore -o /local/bugExample
Steps to reproduce
Generate the client with the previous command and run
dotnet build
in the openapi-bug/bugExample/src/Org.OpenAPITools folder