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
or (name, ...specs) <-- Looks like you can pass in a bunch of specs like and()
Data must conform to at least one provided spec. The order in which they are validated is not defined. conform returns matched branches along with input data.
const big_or_even = spec.or("big or even", {
'even': spec.even,
'big': nr => nr > 1000
})```
Perhaps or should be:
or(name, {key1: spec, key2: spec...})
The text was updated successfully, but these errors were encountered:
The docs for "or" look like this:
or (name, ...specs) <-- Looks like you can pass in a bunch of specs like
and()
Data must conform to at least one provided spec. The order in which they are validated is not defined. conform returns matched branches along with input data.
The text was updated successfully, but these errors were encountered: