Skip to content

Casing of Types is overwritten when using --root-types #2402

@kaggl

Description

@kaggl

openapi-typescript version

7.9.0

Node.js version

22.15

OS + version

Windows 11 Enterprise 23H2

Description

Inside the Interface, these types are correctly named, but the export types change DTO to Dto

Image

Reproduction

This can be easily reproduced by using a mix of naming conventions

Image

Expected result

I want the generated types to exactly match the names of the generated interface keys

Required

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

Extra

Metadata

Metadata

Assignees

No one assigned

    Labels

    PRs welcomePRs are welcome to solve this issue!bugSomething isn't workinggood first issueStraightforward problem, solvable for first-time contributors without deep knowledge of the projectopenapi-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