Skip to content

JSON Schema with if/then keywords is generated into unknown type #2764

@giovanism

Description

@giovanism

Description

My use case is to use allOf in combination with if and then keyword. I'm expecting to have the sub schema defined under then merged but they are generated as unknown instead.

Reproducible example or configuration

https://github.com/giovanism/issue-demo-hey-api-openapi-ts-if-then

OpenAPI specification (optional)

No response

System information (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🔥Something isn't workingjavascriptPull requests that update Javascript codeneeds info ⏳Further information is required

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions