Skip to content

Generated code doesn't comply with TypeScript option 'exactOptionalPropertyTypes: true' #2363

@stondini

Description

@stondini

Description

The tsconfig.json file specifies the exactOptionalPropertyTypes: true option.

Below the files that don't compile (left side is the generated file, right side, the fixed file):

Image Image Image

Reproducible example or configuration

N/A

OpenAPI specification (optional)

No response

System information (optional)

@hey-api/openapi-ts version 0.80.1

Let me know if you need more information.

Stephane

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🔥Broken or incorrect behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions