Replies: 1 comment 18 replies
-
Where does the |
Beta Was this translation helpful? Give feedback.
18 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to have a schema with the following behavior (e.g. for a number input field):
Input type:
number | null
Output type:
number
Default:
null
So I tried the following:
v.nullable(v.number())
-> Output type isnumber | null
; Default isundefined
v.nullable(v.number(), 0)
-> Default is0
v.transform
but I didn't find a way to do it.Thanks for your advice!
Beta Was this translation helpful? Give feedback.
All reactions