Skip to content

Unexpected error when property schemas are boolean #2198

Closed
@StefanTerdell

Description

@StefanTerdell

openapi-typescript version

7.6.1

Node.js version

20.5.1

OS + version

macOS 15.3.1

Description

If an object property is defined with a boolean schema transformation will fail. There is precedent in the codebase to handle these as unknown and never respectively (see additionalProperties).

Reproduction

See the test in the linked PR.

Expected result

See the test in the linked PR.

Required

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

Extra

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