{"_id":"@aslijia/validate","_rev":"6-2129089000436022791ffa97726bdbcc","name":"@aslijia/validate","dist-tags":{"latest":"5.0.3"},"versions":{"4.5.1":{"name":"@aslijia/validate","description":"Validate object properties in javascript.","version":"4.5.1","author":{"name":"Eivind Fjeldstad"},"repository":{"type":"git","url":"git+https://github.com/eivindfjeldstad/validate.git"},"keywords":["validation","validate","valid","object"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"types":"./types/index.d.ts","engines":{"node":">=7.6"},"dependencies":{"component-type":"1.2.1","eivindfjeldstad-dot":"0.0.1","typecast":"0.0.1"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-jest":"^23.0.0","babel-plugin-add-module-exports":"^1.0.0","babel-preset-env":"^1.6.1","documentation":"^9.1.1","eslint":"^5.0.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-node":"^8.0.0","eslint-plugin-promise":"^4.0.0","eslint-plugin-standard":"^4.0.0","jest":"^22.4.3"},"jest":{"testMatch":["**/test/**/*.js"],"coverageReporters":["text-summary","lcov"],"bail":true,"testEnvironment":"node"},"main":"build/schema.js","license":"MIT","gitHead":"10318b6b892b28d7936ac7fadba104fd7e52c773","bugs":{"url":"https://github.com/eivindfjeldstad/validate/issues"},"homepage":"https://github.com/eivindfjeldstad/validate#readme","_id":"@aslijia/validate@4.5.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"aslijia","email":"medivh.wd@gmail.com"},"dist":{"integrity":"sha512-sjLGat6ZThmiEeW4jA8wieU0zK/bTWZvKfyNFaGTE7ZLmIM+N2Uf+iU3hhMp7Wltq09TltUKFD59gpjKQfxO7Q==","shasum":"3483249d33a102979a4fe3cdb51d8b72aa3e5e07","tarball":"https://registry.npmjs.org/@aslijia/validate/-/validate-4.5.1.tgz","fileCount":3,"unpackedSize":21700,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchilzCRA9TVsSAnZWagAAXdQP/0MPO6AsYO2gX5uol4SX\nEoQmQ2zMUIlNw6w9JljQxcWWFaEXsoErcyClIU8U1Bj7znohz5FvktG8sPZ0\nFj7KYk4nK/ii8LPu/WB5x7gdm5BpnyI5C905TvTceZFbsxSKeHDeU22UrdPo\nL+pEHE0rggUmMyOEP7ioGk5rAyJCVtkfIHEbFOyWdTFw2fyvEWlqWJcdLGV+\njpbxfWeAPp9BeM9DtTx503ASXaQ2vij7gSi4FeEpb4zl5Vj5nFwoVHBdT9wa\nDcfceS61x4Ts2DluWoQLA5mQ9OVOUKLs7aDxWtp4lt2W+2B/RzfYTWKmG0+u\n/7f1MPcGrjZDefdqdVvsNz3aSTy+/T5QwmHg5tcULqPrqkw09AgZKQ1GMGUw\nHvftdfL/W2tn/U+lryvIZcb3pUdCK4eH45ybyuMzi3SIfabDym3Z0PKXfYUi\nKy1fHdSt/Wa3/uNy9uQaUUqQXKHvj4yc+3/B4oT/q/Gx3ZXHE9nCuhtaqxf2\ne61scZ7ZQ5TK9Tw5aLSFKJ4oOtO6ASA0e/ABg6W15rHAbLE2uoo1phNdnMiq\nn6ZsCRRAljQ1XGvyblZiSRgb1N7Y3Mxgxc4///KZUFil9hS66SN5vR8ap0CQ\nUucICAdVfrUHdCBTxduUGe+sCB79wVYnTedY4SnS0wtV74rKKzgLLDZzUp8f\nRc6D\r\n=293U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAEf7txuQKaY+2LAESu9+IkPZ2EHxVk3goOKHKcULH8sAiEAzIAGoIgRf68+TwsXsSqQg+HNdBupXWMB4JDE6P7WiLw="}]},"maintainers":[{"name":"aslijia","email":"medivh.wd@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate_4.5.1_1552296306705_0.4930309781583966"},"_hasShrinkwrap":false},"4.5.2":{"name":"@aslijia/validate","description":"Validate object properties in javascript.","version":"4.5.2","author":{"name":"Eivind Fjeldstad"},"repository":{"type":"git","url":"git+https://github.com/Aslijia/validate.git"},"keywords":["validation","validate","valid","object"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"types":"./types/index.d.ts","engines":{"node":">=7.6"},"dependencies":{"component-type":"1.2.1","eivindfjeldstad-dot":"0.0.1","typecast":"0.0.1"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-jest":"^23.0.0","babel-plugin-add-module-exports":"^1.0.0","babel-preset-env":"^1.6.1","documentation":"^9.1.1","eslint":"^5.0.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-node":"^8.0.0","eslint-plugin-promise":"^4.0.0","eslint-plugin-standard":"^4.0.0","jest":"^22.4.3"},"main":"build/schema.js","license":"MIT","gitHead":"6fa6504893aa3a08f5cc4edab1d12705c17cf76d","bugs":{"url":"https://github.com/Aslijia/validate/issues"},"homepage":"https://github.com/Aslijia/validate#readme","_id":"@aslijia/validate@4.5.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"aslijia","email":"medivh.wd@gmail.com"},"dist":{"integrity":"sha512-irtYUqUoHYQJ0+GbXkmGGUJb6uKEdjQw+kk6PksFbhCyiBNtWYyQM1MFVCRWII+swJa3uCcXp+vM9zM1sCMcLw==","shasum":"90e0681b1baef029953449706254872239376ee1","tarball":"https://registry.npmjs.org/@aslijia/validate/-/validate-4.5.2.tgz","fileCount":3,"unpackedSize":21527,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchiriCRA9TVsSAnZWagAAO3oP/ReDBgYJ6gWB5xgTrLnX\n4xT/YymaTfEj4CNFal87GjbFEqxeXASPrPco0FYLFs8lQzPaLCbQjJKZTBE7\nJHf/lkEU4YC8383c5sOktCHWZejy75686sR0t9K0T5fmeV36nqRRWwYnV4YX\nk/i8Bu7FcRuefsfu07hV4z60yhdFgn36ct8uZwCjMM/XEEwarHSA6psTCx+F\nZkjKR6JVpfGF3fN6WWZKrt+S8h0gO2RxWXjYYgV9EP3iV9S92nwjyr40B/+h\niNGd2h+0WLA5LOEXC5ThYi7esnffzys4O7ObUs7ZVRSh1QynnPYm2hGDUQUp\nQM2kgVtcprrmooxC95gtHW0mQdsyGkOfRdkhbeUwsPSWi6HZWyx4OSqA/XZC\nFp31JTSAsCd5iXEfvSLvR6dQGYu0TsxQtmh43Xa4YTBY2XsX9xz6xb8UmcD+\nuFXnbTnVwtqYkdR1TZC+eNXqRQixcZyLb6hAEeuIfavg1f9jU4jbduLO7xC3\nJMfIPJ+qrwjHQJFRckRaNCtMevU2kaLEY1DBtXxStMbt3plo6cv21IIoUoNF\n0eGXFKj9L5xASeOqMyjaTCzz6sO02J1Y3An7uW2/yY6z1eZwc3kV+4uAOOyD\nbzYJnu7arAqr9E81vEzOWBo19hrH51iOluzinbBVbJp744Gdj6HhFClPJgmf\nhsw8\r\n=omZG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxywLDmibXM3AW7Dz0+ypwxw8yME4rvJV/ibVlUyr+oAIhAMCCog+gC0dDgGCAIOwEmKcj7HoY9Q+yLjjWuRPMVeL9"}]},"maintainers":[{"name":"aslijia","email":"medivh.wd@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate_4.5.2_1552296673854_0.5043893093225116"},"_hasShrinkwrap":false},"5.0.0":{"name":"@aslijia/validate","description":"Validate object properties in javascript.","version":"5.0.0","author":{"name":"Eivind Fjeldstad"},"repository":{"type":"git","url":"git+https://github.com/aslijia/validate.git"},"keywords":["validation","validate","valid","object"],"scripts":{"test":"jest","test-cov":"jest --coverage --runInBand --forceExit","docs":"documentation readme ./src/*.js --section=API","lint":"eslint src test","build":"babel -d build src","prepublish":"npm run build"},"engines":{"node":">=7.6"},"dependencies":{"component-type":"1.2.1","eivindfjeldstad-dot":"0.0.1","typecast":"0.0.1"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-jest":"^23.0.0","babel-plugin-add-module-exports":"^1.0.0","babel-preset-env":"^1.6.1","documentation":"^9.1.1","eslint":"^5.0.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-node":"^8.0.0","eslint-plugin-promise":"^4.0.0","eslint-plugin-standard":"^4.0.0","jest":"^22.4.3"},"jest":{"testMatch":["**/test/**/*.js"],"coverageReporters":["text-summary","lcov"],"bail":true,"testEnvironment":"node"},"main":"build/schema.js","types":"./types/index.d.ts","license":"MIT","gitHead":"b8222d9872e81e9507b1a00676155d6a6bc34803","bugs":{"url":"https://github.com/aslijia/validate/issues"},"homepage":"https://github.com/aslijia/validate#readme","_id":"@aslijia/validate@5.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"aslijia","email":"medivh.wd@gmail.com"},"dist":{"integrity":"sha512-OXnbVbVanB28JBPdWdD5L2AmyUw4IENXKI7fCzHqu28CQShpf+dulnmSspkJVdEX7cXiMoDsX6NvnZ3mjIOGBw==","shasum":"8a92d9451bbaa40ffa2b66687a6db47d74b545ae","tarball":"https://registry.npmjs.org/@aslijia/validate/-/validate-5.0.0.tgz","fileCount":9,"unpackedSize":58077,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchi1fCRA9TVsSAnZWagAA4NsP/R2Qk1B5lfRI9wYN5G6n\nqD4WzmTC8HsVjRff97fJGvwTfngpmxK5FciyE5+RwixOVFTrxZPmoMtvHUSo\nibLTc0h+7zuRd4/ivi8kgRnQ41EUKhgevPjWxjJWpsuuGo8Mo8MO7Gzi0798\nShmCrQ3xGD/m02hONpJKQXgC3R1p1+Kmv6DHTzESjTsnlarooUXwVIN11dFt\nDzqjmFBsl3apb+syySZ897SJLwvBzzIGLifcY2fNJycdjlMxf0TCxe3/zmB0\nH38SqJisjJ4niQv7cUkFe8XD5gLdNZU8SHXPCjQNHNl+wa03gVgkxCXZIu0u\nrGkvq7YrhQYUKrcUEo5FiWX4igb/cXo324XktXEuSPOMU0L6TqiDY4kj3+wY\nr1SRCpxU7wcfJYZA10LCawdYFE+sq7jZaU4MTVASBaS9xwnC+C1pGGC5XQk6\nWb74dVYdFxp92eqZQ0C4XGtBlMwIF8lIggUWexYQ/nZKnQtkWS1t3XBIxAaF\n6jUciNDMmDlYM94n3chQWMMjzsoqS7QuimdX0+nvGaA1YlYSeEHx0hDPT311\nxUoF92lHpwIB3BZGFNbyIXPAaWGGGyeWhl7Tk4gsABg5qQmF3/XJuG3FcmGW\n/Fis0teIQPisMD7+YmeoSCSMyACTSNhGhJACyOkvuwHN4O0CUs+VYr4FPwDQ\nyiYW\r\n=f4j8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICTBwpiqepAm5e3TuVpmw6teSsjpm4wGAUbT1F7bRUevAiEAv5vo+XRQL6ZsFvQkyVIkTBQ1yLmv8CFLjB8EGmlM/Jg="}]},"maintainers":[{"name":"aslijia","email":"medivh.wd@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate_5.0.0_1552297310254_0.6222718718469462"},"_hasShrinkwrap":false},"5.0.1":{"name":"@aslijia/validate","description":"Validate object properties in javascript.","version":"5.0.1","author":{"name":"Eivind Fjeldstad"},"repository":{"type":"git","url":"git+https://github.com/aslijia/validate.git"},"keywords":["validation","validate","valid","object"],"scripts":{"test":"jest","test-cov":"jest --coverage --runInBand --forceExit","docs":"documentation readme ./src/*.js --section=API","lint":"eslint src test","build":"babel -d build src","prepublish":"npm run build"},"engines":{"node":">=7.6"},"dependencies":{"component-type":"1.2.1","eivindfjeldstad-dot":"0.0.1","typecast":"0.0.1"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-jest":"^23.0.0","babel-plugin-add-module-exports":"^1.0.0","babel-preset-env":"^1.6.1","documentation":"^9.1.1","eslint":"^5.0.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-node":"^8.0.0","eslint-plugin-promise":"^4.0.0","eslint-plugin-standard":"^4.0.0","jest":"^22.4.3"},"jest":{"testMatch":["**/test/**/*.js"],"coverageReporters":["text-summary","lcov"],"bail":true,"testEnvironment":"node"},"main":"build/schema.js","types":"./types/index.d.ts","license":"MIT","gitHead":"4eec37ea67f1925af0dbbfc418d8899be618f2a7","bugs":{"url":"https://github.com/aslijia/validate/issues"},"homepage":"https://github.com/aslijia/validate#readme","_id":"@aslijia/validate@5.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"aslijia","email":"medivh.wd@gmail.com"},"dist":{"integrity":"sha512-nMIVRMMyUYrmXb++86SmEJ/YGvg1S4HiuPuDFz6AEk+c7GXZ4d4La2XJ3RMrOseEeG6tvEMXgS1L7sKV+g6sbQ==","shasum":"6dcf9fdd6b32ad88ee9eba7e8fd0ddbf74eb4db1","tarball":"https://registry.npmjs.org/@aslijia/validate/-/validate-5.0.1.tgz","fileCount":10,"unpackedSize":61347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchi5qCRA9TVsSAnZWagAAClYP/A6uD3XhYpfG4u6SJk0C\ntTgaVw5aslheTYbKmVYThsfEuC2QnyoOrRHWMyX7FaBDTZQuOf94Jdim4b97\nWiH3207FyEtDVYr0OTxvdgneRe5Ipdim46IXHT4Q2QWG4Pju7JB1FQDdZI7s\nrm2ieg0+M+CTAANGWSq0v9PeDHobFwnfRGBphvJWbuZ0MS+Y5J6rtEzpWH8g\nuvq7YliLkNFO5W7f+iyQv5ibJmmZtdDFkovRU8aCJFrZWAnGfC71n8SPDUHE\nJKEokndJ9gCzybysS8U2R38faewG0GBQAa5kZrm++g/HMmc6u14F5YvpMx2g\n3ggqqwSb/KSNqzsEemchWReAHDnZXQlUfIx9nFToQLNgX04xXMhB7da1FBPC\nwHA5Mwq9paH6FbqSGRzPxWMBKc8lHmQ+S63372L+91SQLH7xHDnCLDzEIiNq\nW4NjRtMTDtJPBpEQhaJWsHUhU+TxFxtyuKiztOnG3AnyxAWFcFzbNufHhnJr\nAs4y/fgpx3wG+4aJRTiuGoM+1tkZMHKHWAcA9BKIC63fYryrQsR3vkSdcNNl\nSo/QiQlTsNF1HgXAuMNwJdJrZEmfjauQzxL5N8k9c/wtXDThS0YLuLiKnFcO\necS1/kugme6y1g/MO3xdU+E5+AXDkrJrrAmz9ahVTKiJqWCSwSZSByarr6TP\nADiN\r\n=RKfb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtAEGOJ2VkLmavqhJP9l29tfN6FO6hr4jzRJ9tNEaYIwIgcaAi600LFLvBRgPjJ1CdeRhSNUZWYQN1Sh8kPz4rkAU="}]},"maintainers":[{"name":"aslijia","email":"medivh.wd@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate_5.0.1_1552297577920_0.5330864814477263"},"_hasShrinkwrap":false},"5.0.2":{"name":"@aslijia/validate","description":"Validate object properties in javascript.","version":"5.0.2","author":{"name":"Eivind Fjeldstad"},"repository":{"type":"git","url":"git+https://github.com/aslijia/validate.git"},"keywords":["validation","validate","valid","object"],"scripts":{"test":"jest","test-cov":"jest --coverage --runInBand --forceExit","docs":"documentation readme ./src/*.js --section=API","lint":"eslint src test","build":"babel -d build src","prepublish":"npm run build"},"engines":{"node":">=7.6"},"dependencies":{"component-type":"1.2.1","eivindfjeldstad-dot":"0.0.1","typecast":"0.0.1"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-jest":"^23.0.0","babel-plugin-add-module-exports":"^1.0.0","babel-preset-env":"^1.6.1","documentation":"^9.1.1","eslint":"^5.0.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-node":"^8.0.0","eslint-plugin-promise":"^4.0.0","eslint-plugin-standard":"^4.0.0","jest":"^22.4.3"},"jest":{"testMatch":["**/test/**/*.js"],"coverageReporters":["text-summary","lcov"],"bail":true,"testEnvironment":"node"},"main":"build/schema.js","types":"./types/index.d.ts","license":"MIT","gitHead":"7b0ed8563a3a354781c6c0f1c92906558d5d165c","bugs":{"url":"https://github.com/aslijia/validate/issues"},"homepage":"https://github.com/aslijia/validate#readme","_id":"@aslijia/validate@5.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"aslijia","email":"medivh.wd@gmail.com"},"dist":{"integrity":"sha512-J0aigZXdY4p4S39tPPdXb+jQ47YRMaqi8TOtm1ajJ7Lb7j9aM92H6WkDA70tmG5tq1Heh+GpnpbVJv5LfIroZw==","shasum":"e6bba9c105aa9b258589cb51540e458e6b1e8965","tarball":"https://registry.npmjs.org/@aslijia/validate/-/validate-5.0.2.tgz","fileCount":10,"unpackedSize":61337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchj/ICRA9TVsSAnZWagAAPlkP/AxaB+0O3m9VNSZZW6OS\ntJjBmHx/ejgUjHyM4bt20RVQDU4pH3ORhHKI8vA6XCZx6HYQkjQ4D3J0OTuv\nQ7DLnExmpa/C+yEGLAeH6qfN6k+gyu37QT5ZCpcdC1sfTgcFfMmL4JLZ/k4M\n9jhicsRTgDaT/vniHtBHUftt91wOxjSXnu2cF/+C/QPQh8XjrDXnRZGksCnu\nq4ec5k4Hv7ByJlW5BXlWAsrbGCyA4pIvIEiVAI2pgFBZWb1IdSwbDy5UqSxq\n3e9U0htpKjHQh5Ei7gZ6VR0bGDyKPKcbW3kRBpUU4oVuMOYaLbEqWUHzTUhx\nqO5kH8FTvTkh9yh/VrmbXFM86rjS2LLrAB4N3Pruf037nu7Si4b6wXa2QNDh\ngXdFdwwfwg00295/NEcaGFOA2/P9FYFRm1YjralJ5CTShZwGjXNQZ+uOP7it\nRHi72xL/E8WkUH7c+yGogHdg3/AryJKqXPTUnS8XQ86GLWJ5KlmUGYqNIaT/\nkOzy9unoFnVxXNxx6e8G7L/6/HDP6e4MCpl46y58tSf3ebYhwV+BUgvK/KW/\nABDctUEL1Kybq1OPOx4O0iJ9m0uoEvdJEZXFuVbL0MpJqWoeINQrOvoQCXro\nZGav76Wx+/3iBWgN6JvYHwI3XUx3Mpwz8JKVtL3y1jqkVKca0gfDFA4HC6S4\nKHWQ\r\n=o8qu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGFIGnumeFh4vjvKbwl1U9d0EmEhWXMfDMTEQBDD8T5DAiAypzD5kBLB5VtoysASS2jO6nd15aPB+CIYwYu/Ai2yww=="}]},"maintainers":[{"name":"aslijia","email":"medivh.wd@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate_5.0.2_1552302023645_0.9113126310475457"},"_hasShrinkwrap":false},"5.0.3":{"name":"@aslijia/validate","description":"Validate object properties in javascript.","version":"5.0.3","author":{"name":"Eivind Fjeldstad"},"repository":{"type":"git","url":"git+https://github.com/aslijia/validate.git"},"keywords":["validation","validate","valid","object"],"scripts":{"test":"jest","test-cov":"jest --coverage --runInBand --forceExit","docs":"documentation readme ./src/*.js --section=API","lint":"eslint src test","build":"babel -d build src","prepublish":"npm run build"},"engines":{"node":">=7.6"},"dependencies":{"component-type":"1.2.1","eivindfjeldstad-dot":"0.0.1","typecast":"0.0.1"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-jest":"^23.0.0","babel-plugin-add-module-exports":"^1.0.0","babel-preset-env":"^1.6.1","documentation":"^9.1.1","eslint":"^5.0.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-node":"^8.0.0","eslint-plugin-promise":"^4.0.0","eslint-plugin-standard":"^4.0.0","jest":"^22.4.3"},"jest":{"testMatch":["**/test/**/*.js"],"coverageReporters":["text-summary","lcov"],"bail":true,"testEnvironment":"node"},"main":"build/schema.js","types":"./types/index.d.ts","license":"MIT","gitHead":"3a28eeeeb5864b1b806abceb4a8f4045333649d2","bugs":{"url":"https://github.com/aslijia/validate/issues"},"homepage":"https://github.com/aslijia/validate#readme","_id":"@aslijia/validate@5.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"aslijia","email":"medivh.wd@gmail.com"},"dist":{"integrity":"sha512-4lEV34JhFhywMDeJi+ogeL6gBcJ6FU8QLhV9SO+ozJytGPes8hKOVllZTEolShQO/VBhGwlDu5lTIz7Lq84+Xg==","shasum":"561f0b8fe84b6876c0b44eff55115a45ca1b4573","tarball":"https://registry.npmjs.org/@aslijia/validate/-/validate-5.0.3.tgz","fileCount":10,"unpackedSize":61357,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJch13iCRA9TVsSAnZWagAAHNcP/3FEK8PbY99D5FjW40Pc\nHKAJLQ6+8r76uLn5a9aM8jLIkcpEOUXseJyOgwG10/peMLY/2mMuFFjB+LgN\nsYUfXwWOQRVDZqWP46b0JYjHQ/CRJAs08gAOz/MSReSFv3QpV+FNNRTZUykc\nHFuafxRuDxPWJvnk5VHAnvuuXopGZty5AdcXSLWARAE9sd2xWX+CpDDvFQ+n\n7cPJoazjG6mEeev64L0EqK5yucqnGX/ch6mZeaqWlSG45y6jN/NSfcbNkZRF\n8vBJDiXZ8wOwXg69u86bQMu8tO33EvkYLXF4Kkvc5yOPPp/Bzbag+wCeGV/o\nUfgYai4BRFuLLLFkyaRsnmEu6thrdPqOvTvcA83oI4saPcQC2N4BQmPDfW/x\noqCUvw4lpVQaZtD+2icyJyqfXsq0dwfkwJBf4X+EV2ZLEBGhvQYLpuscdhbe\nK/PEgsHi+nkXgIle8ytFCDXNGgN8FV6VzdIoUFsirIpJ833lhlkQB8ZvrjB7\nzG1e8rsm5d+snxojhP8FWbe+/AZ1gId1n+V4UlhSz5kYctv2YowU6K2uDqfI\nHBWOw3bwFt5uay63WGlKPjgD0Py2E1yRTOLn/tXuwtgHd/pYMKEnQUouKRxF\nMXHnp9cyO3uB1aVXtAt5oxxHlijYac/1QjopNwjLAK9dUzESn80ITuLxVTPk\ny2N3\r\n=fOQY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgXjhEcWppl1AGNMU5d+kcOrj6+StDwl7qtwGpgQQjnAIhAJeX0dYlrkEtgtQZ/RjshKrp/L03UnuyWlCno68gUbX3"}]},"maintainers":[{"name":"aslijia","email":"medivh.wd@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate_5.0.3_1552375265549_0.9753744910092987"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-11T09:25:06.507Z","4.5.1":"2019-03-11T09:25:06.787Z","modified":"2022-04-04T15:47:40.980Z","4.5.2":"2019-03-11T09:31:14.097Z","5.0.0":"2019-03-11T09:41:50.433Z","5.0.1":"2019-03-11T09:46:18.077Z","5.0.2":"2019-03-11T11:00:23.849Z","5.0.3":"2019-03-12T07:21:05.656Z"},"maintainers":[{"name":"aslijia","email":"medivh.wd@gmail.com"}],"description":"Validate object properties in javascript.","homepage":"https://github.com/aslijia/validate#readme","keywords":["validation","validate","valid","object"],"repository":{"type":"git","url":"git+https://github.com/aslijia/validate.git"},"author":{"name":"Eivind Fjeldstad"},"bugs":{"url":"https://github.com/aslijia/validate/issues"},"license":"MIT","readme":"# validate\n\nValidate object properties in javascript.\n\n[![npm version](http://img.shields.io/npm/v/validate.svg?style=flat-square)](https://npmjs.org/package/validate)\n[![Build Status](http://img.shields.io/travis/eivindfjeldstad/validate.svg?style=flat-square)](https://travis-ci.org/eivindfjeldstad/validate)\n[![Codecov](https://img.shields.io/codecov/c/github/eivindfjeldstad/validate.svg?style=flat-square)](https://codecov.io/gh/eivindfjeldstad/validate)\n\n## Usage\n\nDefine a schema and call `.validate()` with the object you want to validate.\nThe `.validate()` function returns an array of validation errors.\n\n```js\nimport Schema from 'validate'\n\nconst user = new Schema({\n  username: {\n    type: String,\n    required: true,\n    length: { min: 3, max: 32 }\n  },\n  pets: [{\n    name: {\n      type: String\n      required: true\n    },\n    animal: {\n      type: String\n      enum: ['cat', 'dog', 'cow']\n    }\n  }],\n  address: {\n    street: {\n      type: String,\n      required: true\n    },\n    city: {\n      type: String,\n      required: true\n    }\n    zip: {\n      type: String,\n      match: /^[0-9]+$/,\n      required: true\n    }\n  }\n})\n\nconst errors = user.validate(obj)\n```\n\nEach error has a `.path`, describing the full path of the property that failed validation, and a `.message` describing the error.\n\n```js\nerrors[0].path //=> 'address.street'\nerrors[0].message //=> 'address.street is required.'\n```\n\n### Custom error messages\n\nYou can override the default error messages by passing an object to `Schema#message()`.\n\n```js\nconst post = new Schema({\n  title: { required: true }\n})\n\npost.message({\n  required: (path) => `${path} can not be empty.`\n})\n\nconst [error] = post.validate({})\nassert(error.message = 'title can not be empty.')\n```\n\nIt is also possible to define messages for individual properties:\n\n```js\nconst post = new Schema({\n  title: {\n    required: true,\n    message: 'Title is required.'\n  }\n})\n```\n\nAnd for individual validators:\n\n```js\nconst post = new Schema({\n  title: {\n    type: String,\n    required: true,\n    message: {\n      type: 'Title must be a string.',\n      required: 'Title is required.'\n    }\n  }\n})\n```\n\n### Nesting\n\nObjects and arrays can be nested as deep as you want:\n\n```js\nconst event = new Schema({\n  title: {\n    type: String,\n    required: true\n  },\n  participants: [{\n    name: String,\n    email: {\n      type: String,\n      required: true\n    },\n    things: [{\n      name: String,\n      amount: Number\n    }]\n  }]\n})\n```\n\nArrays can be defined implicitly, like in the above example, or explicitly:\n\n```js\nconst post = new Schema({\n  keywords: {\n    type: Array,\n    each: { type: String }\n  }\n})\n```\n\nArray elements can also be defined individually:\n\n```js\nconst user = new Schema({\n  something: {\n    type: Array,\n    elements: [\n      { type: Number },\n      { type: String }\n    ]\n  }\n})\n```\n\nNesting also works with schemas:\n\n```js\nconst user = new Schema({\n  name: {\n    type: String,\n    required: true\n  },\n  email: {\n    type: String,\n    required: true\n  }\n})\n\nconst post = new Schema({\n  title: {\n    type: String,\n    required: true\n  },\n  content: {\n    type: String,\n    required: true\n  },\n  author: user\n})\n```\n\nIf you think it should work, it probably works.\n\n### Custom validators\n\nCustom validators can be defined by passing an object with named validators to `.use`:\n\n```js\nconst hexColor = val => /^#[0-9a-fA-F]$/.test(val)\n\nconst car = new Schema({\n  color: {\n    type: String,\n    use: { hexColor }\n  }\n})\n```\n\nDefine a custom error message for the validator:\n\n```js\ncar.message({\n  hexColor: path => `${path} must be a valid color.`\n})\n```\n\n### Custom types\n\nPass a constructor to `.type` to validate against a custom type:\n\n```js\nclass Car {}\n\nconst user = new Schema({\n  car: { type: Car }\n})\n```\n\n### Chainable API\n\nIf you want to avoid constructing large objects, you can add paths to a schema by using the chainable API:\n\n```js\nconst user = new Schema()\n\nuser\n  .path('username').type(String).required()\n  .path('address.zip').type(String).required()\n```\n\nArray elements can be defined by using `$` as a placeholder for indices:\n\n```js\nconst user = new Schema()\nuser.path('pets.$').type(String)\n```\n\nThis is equivalent to writing\n\n```js\nconst user = new Schema({ pets: [{ type: String }]})\n```\n\n### Typecasting\n\nValues can be automatically typecast before validation.\nTo enable typecasting, pass an options object to the `Schema` constructor with `typecast` set to `true`.\n\n```js\nconst user = new Schema(definition, { typecast: true })\n```\n\nYou can override this setting by passing an option to `.validate()`.\n\n```js\nuser.validate(obj, { typecast: false })\n```\n\nTo typecast custom types, you can register a typecaster:\n\n```js\nclass Car {}\n\nconst user = new Schema({\n  car: { type: Car }\n})\n\nuser.typecaster({\n  Car: (val) => new Car(val)\n})\n```\n\n### Property stripping\n\nBy default, all values not defined in the schema will be stripped from the object.\nSet `.strip = false` on the options object to disable this behavior.\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n#### Table of Contents\n\n-   [Property](#property)\n    -   [Parameters](#parameters)\n    -   [message](#message)\n        -   [Parameters](#parameters-1)\n        -   [Examples](#examples)\n    -   [schema](#schema)\n        -   [Parameters](#parameters-2)\n        -   [Examples](#examples-1)\n    -   [use](#use)\n        -   [Parameters](#parameters-3)\n        -   [Examples](#examples-2)\n    -   [required](#required)\n        -   [Parameters](#parameters-4)\n        -   [Examples](#examples-3)\n    -   [type](#type)\n        -   [Parameters](#parameters-5)\n        -   [Examples](#examples-4)\n    -   [length](#length)\n        -   [Parameters](#parameters-6)\n        -   [Examples](#examples-5)\n    -   [size](#size)\n        -   [Parameters](#parameters-7)\n        -   [Examples](#examples-6)\n    -   [enum](#enum)\n        -   [Parameters](#parameters-8)\n        -   [Examples](#examples-7)\n    -   [match](#match)\n        -   [Parameters](#parameters-9)\n        -   [Examples](#examples-8)\n    -   [each](#each)\n        -   [Parameters](#parameters-10)\n        -   [Examples](#examples-9)\n    -   [elements](#elements)\n        -   [Parameters](#parameters-11)\n        -   [Examples](#examples-10)\n    -   [path](#path)\n        -   [Parameters](#parameters-12)\n        -   [Examples](#examples-11)\n    -   [typecast](#typecast)\n        -   [Parameters](#parameters-13)\n        -   [Examples](#examples-12)\n    -   [validate](#validate)\n        -   [Parameters](#parameters-14)\n        -   [Examples](#examples-13)\n-   [Schema](#schema-1)\n    -   [Parameters](#parameters-15)\n    -   [Examples](#examples-14)\n    -   [path](#path-1)\n        -   [Parameters](#parameters-16)\n        -   [Examples](#examples-15)\n    -   [validate](#validate-1)\n        -   [Parameters](#parameters-17)\n        -   [Examples](#examples-16)\n    -   [assert](#assert)\n        -   [Parameters](#parameters-18)\n        -   [Examples](#examples-17)\n    -   [message](#message-1)\n        -   [Parameters](#parameters-19)\n        -   [Examples](#examples-18)\n    -   [validator](#validator)\n        -   [Parameters](#parameters-20)\n        -   [Examples](#examples-19)\n    -   [typecaster](#typecaster)\n        -   [Parameters](#parameters-21)\n        -   [Examples](#examples-20)\n\n### Property\n\nA property instance gets returned whenever you call `schema.path()`.\nProperties are also created internally when an object is passed to the Schema constructor.\n\n#### Parameters\n\n-   `name` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** the name of the property\n-   `schema` **[Schema](#schema)** parent schema\n\n#### message\n\nRegisters messages.\n\n##### Parameters\n\n-   `messages` **([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) \\| [String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))** \n\n##### Examples\n\n```javascript\nprop.message('something is wrong')\nprop.message({ required: 'thing is required.' })\n```\n\nReturns **[Property](#property)** \n\n#### schema\n\nMount given `schema` on current path.\n\n##### Parameters\n\n-   `schema` **[Schema](#schema)** the schema to mount\n\n##### Examples\n\n```javascript\nconst user = new Schema({ email: String })\nprop.schema(user)\n```\n\nReturns **[Property](#property)** \n\n#### use\n\nValidate using named functions from the given object.\nError messages can be defined by providing an object with\nnamed error messages/generators to `schema.message()`\n\nThe message generator receives the value being validated,\nthe object it belongs to and any additional arguments.\n\n##### Parameters\n\n-   `fns` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** object with named validation functions to call\n\n##### Examples\n\n```javascript\nconst schema = new Schema()\nconst prop = schema.path('some.path')\n\nschema.message({\n  binary: (path, ctx) => `${path} must be binary.`,\n  bits: (path, ctx, bits) => `${path} must be ${bits}-bit`\n})\n\nprop.use({\n  binary: (val, ctx) => /^[01]+$/i.test(val),\n  bits: [(val, ctx, bits) => val.length == bits, 32]\n})\n```\n\nReturns **[Property](#property)** \n\n#### required\n\nRegisters a validator that checks for presence.\n\n##### Parameters\n\n-   `bool` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** `true` if required, `false` otherwise (optional, default `true`)\n\n##### Examples\n\n```javascript\nprop.required()\n```\n\nReturns **[Property](#property)** \n\n#### type\n\nRegisters a validator that checks if a value is of a given `type`\n\n##### Parameters\n\n-   `type` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function))** type to check for\n\n##### Examples\n\n```javascript\nprop.type(String)\n```\n\n```javascript\nprop.type('string')\n```\n\nReturns **[Property](#property)** \n\n#### length\n\nRegisters a validator that checks length.\n\n##### Parameters\n\n-   `rules` **([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) \\| [Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number))** object with `.min` and `.max` properties or a number\n    -   `rules.min` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** minimum length\n    -   `rules.max` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** maximum length\n\n##### Examples\n\n```javascript\nprop.length({ min: 8, max: 255 })\nprop.length(10)\n```\n\nReturns **[Property](#property)** \n\n#### size\n\nRegisters a validator that checks size.\n\n##### Parameters\n\n-   `rules` **([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) \\| [Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number))** object with `.min` and `.max` properties or a number\n    -   `rules.min` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** minimum size\n    -   `rules.max` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** maximum size\n\n##### Examples\n\n```javascript\nprop.size({ min: 8, max: 255 })\nprop.size(10)\n```\n\nReturns **[Property](#property)** \n\n#### enum\n\nRegisters a validator for enums.\n\n##### Parameters\n\n-   `enums`  \n-   `rules` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** allowed values\n\n##### Examples\n\n```javascript\nprop.enum(['cat', 'dog'])\n```\n\nReturns **[Property](#property)** \n\n#### match\n\nRegisters a validator that checks if a value matches given `regexp`.\n\n##### Parameters\n\n-   `regexp` **[RegExp](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)** regular expression to match\n\n##### Examples\n\n```javascript\nprop.match(/some\\sregular\\sexpression/)\n```\n\nReturns **[Property](#property)** \n\n#### each\n\nRegisters a validator that checks each value in an array against given `rules`.\n\n##### Parameters\n\n-   `rules` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array) \\| [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) \\| [Schema](#schema) \\| [Property](#property))** rules to use\n\n##### Examples\n\n```javascript\nprop.each({ type: String })\nprop.each([{ type: Number }])\nprop.each({ things: [{ type: String }]})\nprop.each(schema)\n```\n\nReturns **[Property](#property)** \n\n#### elements\n\nRegisters paths for array elements on the parent schema, with given array of rules.\n\n##### Parameters\n\n-   `arr` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** array of rules to use\n\n##### Examples\n\n```javascript\nprop.elements([{ type: String }, { type: Number }])\n```\n\nReturns **[Property](#property)** \n\n#### path\n\nProxy method for schema path. Makes chaining properties together easier.\n\n##### Parameters\n\n-   `args` **...any** \n\n##### Examples\n\n```javascript\nschema\n  .path('name').type(String).required()\n  .path('email').type(String).required()\n```\n\n#### typecast\n\nTypecast given `value`\n\n##### Parameters\n\n-   `value` **Mixed** value to typecast\n\n##### Examples\n\n```javascript\nprop.type(String)\nprop.typecast(123) // => '123'\n```\n\nReturns **Mixed** \n\n#### validate\n\nValidate given `value`\n\n##### Parameters\n\n-   `value` **Mixed** value to validate\n-   `ctx` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** the object containing the value\n-   `path` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** path of the value being validated (optional, default `this.name`)\n\n##### Examples\n\n```javascript\nprop.type(Number)\nassert(prop.validate(2) == null)\nassert(prop.validate('hello world') instanceof Error)\n```\n\nReturns **ValidationError** \n\n### Schema\n\nA Schema defines the structure that objects should be validated against.\n\n#### Parameters\n\n-   `obj` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** schema definition (optional, default `{}`)\n-   `opts` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** options (optional, default `{}`)\n    -   `opts.typecast` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** typecast values before validation (optional, default `false`)\n    -   `opts.strip` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** strip properties not defined in the schema (optional, default `true`)\n\n#### Examples\n\n```javascript\nconst post = new Schema({\n  title: {\n    type: String,\n    required: true,\n    length: { min: 1, max: 255 }\n  },\n  content: {\n    type: String,\n    required: true\n  },\n  published: {\n    type: Date,\n    required: true\n  },\n  keywords: [{ type: String }]\n})\n```\n\n```javascript\nconst author = new Schema({\n  name: {\n    type: String,\n    required: true\n  },\n  email: {\n    type: String,\n    required: true\n  },\n  posts: [post]\n})\n```\n\n#### path\n\nCreate or update `path` with given `rules`.\n\n##### Parameters\n\n-   `path` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** full path using dot-notation\n-   `rules` **([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) \\| [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array) \\| [String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Schema](#schema) \\| [Property](#property))?** rules to apply\n\n##### Examples\n\n```javascript\nconst schema = new Schema()\nschema.path('name.first', { type: String })\nschema.path('name.last').type(String).required()\n```\n\nReturns **[Property](#property)** \n\n#### validate\n\nValidate given `obj`.\n\n##### Parameters\n\n-   `obj` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** the object to validate\n-   `opts` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** options, see [Schema](#schema-1) (optional, default `{}`)\n\n##### Examples\n\n```javascript\nconst schema = new Schema({ name: { required: true }})\nconst errors = schema.validate({})\nassert(errors.length == 1)\nassert(errors[0].message == 'name is required')\nassert(errors[0].path == 'name')\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** \n\n#### assert\n\nAssert that given `obj` is valid.\n\n##### Parameters\n\n-   `obj` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** \n-   `opts` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** \n\n##### Examples\n\n```javascript\nconst schema = new Schema({ name: String })\nschema.assert({ name: 1 }) // Throws an error\n```\n\n#### message\n\nOverride default error messages.\n\n##### Parameters\n\n-   `name` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object))** name of the validator or an object with name-message pairs\n-   `message` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function))?** the message or message generator to use\n\n##### Examples\n\n```javascript\nconst hex = (val) => /^0x[0-9a-f]+$/.test(val)\nschema.path('some.path').use({ hex })\nschema.message('hex', path => `${path} must be hexadecimal`)\n```\n\n```javascript\nschema.message({ hex: path => `${path} must be hexadecimal` })\n```\n\nReturns **[Schema](#schema)** \n\n#### validator\n\nOverride default validators.\n\n##### Parameters\n\n-   `name` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object))** name of the validator or an object with name-function pairs\n-   `fn` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)?** the function to use\n\n##### Examples\n\n```javascript\nschema.validator('required', val => val != null)\n```\n\n```javascript\nschema.validator({ required: val => val != null })\n```\n\nReturns **[Schema](#schema)** \n\n#### typecaster\n\nOverride default typecasters.\n\n##### Parameters\n\n-   `name` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object))** name of the validator or an object with name-function pairs\n-   `fn` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)?** the function to use\n\n##### Examples\n\n```javascript\nschema.typecaster('SomeClass', val => new SomeClass(val))\n```\n\n```javascript\nschema.typecaster({ SomeClass: val => new SomeClass(val) })\n```\n\nReturns **[Schema](#schema)** \n\n## Licence\n\nMIT\n","readmeFilename":"readme.md"}