Skip to content

[BUG][typescript-fetch] oneOf with arrays generate Typescript error #21811

@GregoryMerlet

Description

@GregoryMerlet
Description

It seems that a change from #21464 broke the oneOf sample. Typescript now throw an error because of the last condition of the TestArrayResponseToJSONTyped method:
TS2339: Property every does not exist on type never

openapi-generator version

7.15.0

OpenAPI declaration file content or url

https://github.com/OpenAPITools/openapi-generator/blob/master/samples/client/petstore/typescript-fetch/builds/oneOf/models/TestArrayResponse.ts#L84

Generation Details
Steps to reproduce

Try compiling the oneOf sample with Typescript

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions