Skip to content

[string, null] definition is converted to unknown #969

Closed
@LarsOlt

Description

@LarsOlt

Description

Source:
image

Output:

image

Expected:

"image-path": string | null

Name Version
openapi-typescript 5.4.1
Node.js 16.18.0
OS + version Win 11

Reproduction

How can this be reproduced / when did the error occur?

I am using the https://developers.themoviedb.org/ OAS API definition.

npx openapi-typescript https://api.stoplight.io/v1/versions/9WaNJfGpnnQ76opqe/export/oas.json --output tmdb-oas.ts

Expected result

(in case it’s not obvious)

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.1Part of OpenAPI 3.1bugSomething isn't workingplannedExpected in an upcoming version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions