Skip to content

Any discriminator type is generated twice #2418

@StasTelnov

Description

@StasTelnov

openapi-typescript version

7.9.1

Node.js version

20.19.4

OS + version

ALT Linux 11

Description

Image

Reproduction

  1. Generate api
  2. Look at any discriminator type

Expected result

Discriminator type is generated once

Required

  • My OpenAPI schema is valid and passes the Redocly validator (npx @redocly/cli@latest lint)

Extra

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingopenapi-tsRelevant to the openapi-typescript library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions