Browse Source

Improve example

master
Sven Slootweg 1 year ago
parent
commit
c12691fe62
  1. 1
      example.js

1
example.js

@ -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…
Cancel
Save