You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
Thanks for the issue and PR. We’d be willing to accept it given there’s a precedent here. Is there a link to the specification where this is valid, either according to any OpenAPI 3.x version, or JSONSchema? This is the first time I’ve seen this syntax before
Thanks for the reference! That works for me. This library doesn’t require a specific JSONSchema version; as long as a JSONSchema feature doesn’t conflict with any existing behavior it’s a simple add
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
andnever
respectively (seeadditionalProperties
).Reproduction
See the test in the linked PR.
Expected result
See the test in the linked PR.
Required
npx @redocly/cli@latest lint
)Extra
The text was updated successfully, but these errors were encountered: