Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected error when property schemas are boolean #2198

Open
2 tasks done
StefanTerdell opened this issue Mar 13, 2025 · 0 comments · May be fixed by #2199
Open
2 tasks done

Unexpected error when property schemas are boolean #2198

StefanTerdell opened this issue Mar 13, 2025 · 0 comments · May be fixed by #2199
Labels
bug Something isn't working openapi-ts Relevant to the openapi-typescript library

Comments

@StefanTerdell
Copy link

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

@StefanTerdell StefanTerdell added bug Something isn't working openapi-ts Relevant to the openapi-typescript library labels Mar 13, 2025
@StefanTerdell StefanTerdell linked a pull request Mar 13, 2025 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working openapi-ts Relevant to the openapi-typescript library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant