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

toJsonSchema: Only disallow additionalProperties for strictObject #1001

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andersk
Copy link
Contributor

@andersk andersk commented Dec 27, 2024

additionalProperties: true was preventing validation of valid intersected objects.

`additionalProperties: true` was preventing validation of valid
intersected objects.

Fixes fabian-hiller#990.

Signed-off-by: Anders Kaseorg <[email protected]>
Copy link

pkg-pr-new bot commented Dec 27, 2024

Open in Stackblitz

npm i https://pkg.pr.new/valibot@1001

commit: b136f40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

toJsonSchema generates unsatisfiable schema for intersect of objects
1 participant