Skip to content

openapi-typescript doesn't work with Typescript 7 #2841

Description

@yzhe554

openapi-typescript version

7.13.0

Node.js version

24.18.0

OS + version

macOS 26.5.1

Description

openapi-typescript doesn't work when I try to use typescript 7.0.2

const BOOLEAN = ts.factory.createKeywordTypeNode(ts.SyntaxKind.BooleanKeyword);
                           ^

TypeError: Cannot read properties of undefined (reading 'createKeywordTypeNode')

Reproduction

N/A

Expected result

It can generate types from openapi json schema

Required

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

Extra

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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