forked from validatem/core
Improve example
This commit is contained in:
parent
0902ce126a
commit
c12691fe62
|
@ -28,6 +28,7 @@ validateValue(data, {
|
|||
one: [ required, isString ],
|
||||
two: [ required, isNumber ],
|
||||
three: [ required, isBoolean ],
|
||||
optional: [ isString ],
|
||||
array: [ required, arrayOf([ required, isString ]) ],
|
||||
mapping: [ required, anyProperty({
|
||||
key: [ required ],
|
||||
|
|
Loading…
Reference in a new issue