Check if object schema only includes partial keys of the input object
#1122
hyunbinseo
started this conversation in
General
Replies: 1 comment
-
|
I think I would move this to a discussion since it seems not to be an "issue" of Valibot and more a question. Or am I wrong? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Continuing from hyunbinseo/svelte-kitty#26. Thank you @fabian-hiller for the ideas in that issue.
I would love a
parseusage that checks if theobject()schema is valid based on the input object type.This is what I have been using, but it is too strict:
The
Partial<>version does not work, because it allows undefined key-values:Beta Was this translation helpful? Give feedback.
All reactions