PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
node_modules
/
is-my-json-valid
var validator = require('./') var validate = validator({ type: 'object', properties: { hello: { required: true, type: 'string' } } }) console.log('should be valid', validate({hello: 'world'})) console.log('should not be valid', validate({})) // get the last error message by checking validate.error // the following will print "data.hello is required" console.log('the errors were:', validate.errors)
[+]
..
[-] .npmignore
[edit]
[-] example.js
[edit]
[-] package.json
[edit]
[-] index.js
[edit]
[-] formats.js
[edit]
[-] require.js
[edit]
[-] .travis.yml
[edit]
[-] README.md
[edit]
[+]
test
[-] LICENSE
[edit]