hey-api / openapi-ts

🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more. Support: @mrlubos
https://heyapi.dev
Other
1.39k stars 107 forks source link

[experimentalParser] Array isn't Array anymore #1258

Closed mrclrchtr closed 1 week ago

mrclrchtr commented 1 week ago

Description

Hi,

I tried the experimentalParser: true.

Before and after: image

The Array is now an object. Maybe because oneOf is not supported?

Do you need more infos?

Reproducible example or configuration

No response

OpenAPI specification (optional)

    OrderDto:
      type: object
      properties:
        items:
          type: array
          items:
            oneOf:
            - $ref: "#/components/schemas/OrderItemWoodDto"
          maxItems: 2147483647
          minItems: 1

System information (optional)

"@hey-api/openapi-ts": "0.55.1"

mrlubos commented 1 week ago

Nice catch!

mrlubos commented 1 week ago

This will be fixed in the next release, thanks for reporting!