OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
When using oneOf with $ref and the content of $ref is an array, the generator ignores the type of the array which leads to the typescript error:
Error:(20, 20) TS2314: Generic type 'Array<T>' requires 1 type argument(s).
export class Schema1MyData {
'data'?: any | Array; // this should be Array<string>!
//...
Description
When using oneOf with $ref and the content of $ref is an array, the generator ignores the type of the array which leads to the typescript error:
Error:(20, 20) TS2314: Generic type 'Array<T>' requires 1 type argument(s).
openapi-generator version
5.2.0
OpenAPI declaration file content
Command line used for generation
--generator-name=typescript-node