This repository has been archived by the owner on Feb 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 136
add support for maybe structs and maybe lists #236
Labels
Comments
I think you meant |
opss...thanks @volkanunsal, fixed |
I 100% agree. This is exactly what I would expect |
About lists, perhaps it's better:
|
gcanti
added a commit
that referenced
this issue
Oct 25, 2015
gcanti
added a commit
that referenced
this issue
Oct 25, 2015
Released in v0.6.10 and v0.7.6 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Let's say you have this type:
everything's ok, all fields are required. Now consider this type:
what does
t.maybe(t.struct({...
means? A natural answer would be:name
is requiredstreet
andcity
must be strings or.. bothnull
(EDIT)So can we infer the following rules?
I'd love to hear your opinion on this
/cc @VinSpee
The text was updated successfully, but these errors were encountered: