{"_id":"jjv","_rev":"30-4bb86e5d9c18c8e4df7cf9eeb4513ed9","name":"jjv","description":"A simple and extensible json-schema validator written in javascript. JJV runs in the browser and in the server (through node.js), it has no dependencies and has out-of-the-box AMD support.","dist-tags":{"latest":"1.0.2"},"versions":{"0.1.0":{"name":"jjv","version":"0.1.0","author":{"name":"Alex Cornejo"},"devDependencies":{"chai":"~1.8.1","mocha":"~1.13.0","uglify-js":"~2.4.0"},"dependencies":{},"repository":{"type":"git","url":"https://github.com/acornejo/jjv.git","web":"https://github.com/acornejo/jjv"},"licenses":[{"type":"MIT","url":"http://github.com/acornejo/jjv/raw/master/LICENSE"}],"scripts":{"prepublish":"./node_modules/.bin/uglifyjs -o build/jjv.min.js lib/jjv.js","pretest":"./node_modules/.bin/jshint -e 'js,json' ./lib ./test","test":"./node_modules/.bin/mocha -b -R spec ./test"},"main":"index.js","description":"Schema Validator","bugs":{"url":"https://github.com/acornejo/jjv/issues"},"_id":"jjv@0.1.0","dist":{"shasum":"b32264794aa2d578d05ed5f86e702d631fe90c46","tarball":"https://registry.npmjs.org/jjv/-/jjv-0.1.0.tgz","integrity":"sha512-u04bPWC43of3gaW6MWx4DBb6iwxhLMLgx1BHN571TIppPpP0zoHUr1iNU0Ty9pvqDXiBWZ9Tw9F/lhI7NqNthg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAROjqnDbT0O1wqctD5qN/Z2X3d0hsN8pZ1fGZQIRRyPAiA7t/a/jv8WSGajqqtodJxOOG5Uy/mt//KQzqsPCMASxA=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"acornejo","email":"acornejo@gmail.com"},"maintainers":[{"name":"acornejo","email":"acornejo@gmail.com"}],"directories":{}},"0.1.1":{"name":"jjv","version":"0.1.1","author":{"name":"Alex Cornejo"},"devDependencies":{"chai":"~1.8.1","mocha":"~1.13.0","uglify-js":"~2.4.0"},"dependencies":{},"repository":{"type":"git","url":"https://github.com/acornejo/jjv.git","web":"https://github.com/acornejo/jjv"},"licenses":[{"type":"MIT","url":"http://github.com/acornejo/jjv/raw/master/LICENSE"}],"scripts":{"prepublish":"./node_modules/.bin/uglifyjs -o build/jjv.min.js lib/jjv.js","pretest":"./node_modules/.bin/jshint -e 'js,json' ./lib ./test","test":"./node_modules/.bin/mocha -b -R spec ./test"},"main":"index.js","description":"A simple json-schema validator written in javascript.","bugs":{"url":"https://github.com/acornejo/jjv/issues"},"_id":"jjv@0.1.1","dist":{"shasum":"439b428c95a0bcad9a3a6bb41c08cd55a138ecb0","tarball":"https://registry.npmjs.org/jjv/-/jjv-0.1.1.tgz","integrity":"sha512-xaJHMEpfgq0Terj8zAODNS4VDxWk8ILce29ke1XDA0gzqXwjPhJ/1xfALU5q84SZXs4buIX3IAZDGhbdTZr0CA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBwUGw38x1qGQsoExaJaLx5dI+9k6VfBAYYMCr7LQ8XQIgVmhaTGVm48LZk6lWZhTdUEkMQeDkrCCW9Pp+tE5is90="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"acornejo","email":"acornejo@gmail.com"},"maintainers":[{"name":"acornejo","email":"acornejo@gmail.com"}],"directories":{}},"0.1.2":{"name":"jjv","version":"0.1.2","author":{"name":"Alex Cornejo"},"devDependencies":{"chai":"~1.8.1","mocha":"~1.13.0","uglify-js":"~2.4.0","jshint":"~2.3.0"},"dependencies":{},"repository":{"type":"git","url":"https://github.com/acornejo/jjv.git","web":"https://github.com/acornejo/jjv"},"licenses":[{"type":"MIT","url":"http://github.com/acornejo/jjv/raw/master/LICENSE"}],"scripts":{"prepublish":"./node_modules/.bin/uglifyjs -o build/jjv.min.js lib/jjv.js","pretest":"./node_modules/.bin/jshint -e 'js,json' ./lib ./test","test":"./node_modules/.bin/mocha -b -R spec ./test"},"main":"index.js","description":"A simple json-schema validator written in javascript.","bugs":{"url":"https://github.com/acornejo/jjv/issues"},"homepage":"https://github.com/acornejo/jjv","_id":"jjv@0.1.2","dist":{"shasum":"9a57975a1b410e9d5cb93ffbdff2b4eebbcfb563","tarball":"https://registry.npmjs.org/jjv/-/jjv-0.1.2.tgz","integrity":"sha512-emcvh53nFrimgjQa36q+kX/fJtoA5TtmGCZ/HrNiduXKHe1Rt/yInwz3d9pTiOwWL0Z09u9/wf9WOZhxAcUJXg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICieoPCaF7xX0Gd3PV/gUYD8AFfG3uIFZwbbFy1lPj3JAiEAiGwgSpizSDpOutcjrwYGQDVD+ilth8eQsAFg9/4V/8A="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"acornejo","email":"acornejo@gmail.com"},"maintainers":[{"name":"acornejo","email":"acornejo@gmail.com"}],"directories":{}},"0.2.0":{"name":"jjv","version":"0.2.0","author":{"name":"Alex Cornejo"},"devDependencies":{"chai":"~1.8.1","mocha":"~1.13.0","uglify-js":"~2.4.0","jshint":"~2.3.0"},"dependencies":{},"repository":{"type":"git","url":"https://github.com/acornejo/jjv.git","web":"https://github.com/acornejo/jjv"},"licenses":[{"type":"MIT","url":"http://github.com/acornejo/jjv/raw/master/LICENSE"}],"scripts":{"prepublish":"./node_modules/.bin/uglifyjs -o build/jjv.min.js lib/jjv.js","pretest":"./node_modules/.bin/jshint -e 'js,json' ./lib ./test","test":"./node_modules/.bin/mocha -b -R spec ./test"},"main":"index.js","description":"A simple json-schema validator written in javascript.","bugs":{"url":"https://github.com/acornejo/jjv/issues"},"homepage":"https://github.com/acornejo/jjv","_id":"jjv@0.2.0","dist":{"shasum":"f12c665766262f1d9f83a8aa12fc53b42620ed18","tarball":"https://registry.npmjs.org/jjv/-/jjv-0.2.0.tgz","integrity":"sha512-xliZn5nmBxVOl5BuYu0M/4Z1Oaq7E1mydS7F0wGwloQGJ0xuBBzMgLwPPRL5ccav/thLGlQUw6+I5d0SegOa+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB6OfbmQlr8x2c/SeqpX1kMbuG5vS9NTwx9nRwMNsrLvAiEAy1tGqZH6tycPETPhRbmhAIQ8iNSOUjgd5igq+ecBRx0="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"acornejo","email":"acornejo@gmail.com"},"maintainers":[{"name":"acornejo","email":"acornejo@gmail.com"}],"directories":{}},"0.2.1":{"name":"jjv","version":"0.2.1","author":{"name":"Alex Cornejo"},"devDependencies":{"chai":"~1.8.1","mocha":"~1.13.0","uglify-js":"~2.4.0","jshint":"~2.3.0"},"dependencies":{},"repository":{"type":"git","url":"https://github.com/acornejo/jjv.git","web":"https://github.com/acornejo/jjv"},"licenses":[{"type":"MIT","url":"http://github.com/acornejo/jjv/raw/master/LICENSE"}],"scripts":{"prepublish":"./node_modules/.bin/uglifyjs -o build/jjv.min.js lib/jjv.js","pretest":"./node_modules/.bin/jshint -e 'js,json' ./lib ./test","test":"./node_modules/.bin/mocha -b -R spec ./test"},"main":"index.js","description":"A simple json-schema validator written in javascript.","bugs":{"url":"https://github.com/acornejo/jjv/issues"},"homepage":"https://github.com/acornejo/jjv","_id":"jjv@0.2.1","dist":{"shasum":"8ce1877863c6a05093b1841030af1836d2db51ba","tarball":"https://registry.npmjs.org/jjv/-/jjv-0.2.1.tgz","integrity":"sha512-PpOjfWxDevXmIDuUb4DeUKiar/QrE56TlkMNSPAse5YrE/UJcVXTUz/xIMf4yyCtrEwjufDqQDNAflH62qR7Qg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMoDx+Y2ifeVp7uqKn2d4bi2t1ufb+qJJ5JfgC906+awIgCxpsxOqAXZtd2gFzDn7cX4UojwtTc869KL1y/wD6v1E="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"acornejo","email":"acornejo@gmail.com"},"maintainers":[{"name":"acornejo","email":"acornejo@gmail.com"}],"directories":{}},"0.3.0":{"name":"jjv","version":"0.3.0","author":{"name":"Alex Cornejo"},"devDependencies":{"chai":"~1.8.1","mocha":"~1.13.0","uglify-js":"~2.4.0","jshint":"~2.3.0"},"dependencies":{},"repository":{"type":"git","url":"https://github.com/acornejo/jjv.git","web":"https://github.com/acornejo/jjv"},"licenses":[{"type":"MIT","url":"http://github.com/acornejo/jjv/raw/master/LICENSE"}],"scripts":{"prepublish":"./node_modules/.bin/uglifyjs -o build/jjv.min.js lib/jjv.js","pretest":"./node_modules/.bin/jshint -e 'js,json' ./lib ./test","test":"./node_modules/.bin/mocha -b -R spec ./test"},"main":"index.js","description":"A simple and extensible Javascript json-schema validator. Runs in the browser and in the server (through node.js), it has no dependencies and out-of-the-box AMD support.","bugs":{"url":"https://github.com/acornejo/jjv/issues"},"homepage":"https://github.com/acornejo/jjv","_id":"jjv@0.3.0","dist":{"shasum":"bdeff3527ffc37d906ae023b5448c2f2f4a28d0e","tarball":"https://registry.npmjs.org/jjv/-/jjv-0.3.0.tgz","integrity":"sha512-VAqfEaLkRW2qV4a29MMObQJX2dFI3tgVOSmy5k1DnBQaJNO7Pa/4+arC7BTeTfeCb5+TPo/Fy0PvfyTMf9vJbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGx7CEgIR/m9Q0F6oT2gTS8sBxw71KcLMhIhm8c+6TGGAiEAu3aO4UTtNkjkbopRljOmw2XzfooeCJ9Ekp391jd7/us="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"acornejo","email":"acornejo@gmail.com"},"maintainers":[{"name":"acornejo","email":"acornejo@gmail.com"}],"directories":{}},"0.3.1":{"name":"jjv","version":"0.3.1","author":{"name":"Alex Cornejo"},"devDependencies":{"chai":"~1.8.1","mocha":"~1.13.0","uglify-js":"~2.4.0","jshint":"~2.3.0"},"dependencies":{},"repository":{"type":"git","url":"https://github.com/acornejo/jjv.git","web":"https://github.com/acornejo/jjv"},"licenses":[{"type":"MIT","url":"http://github.com/acornejo/jjv/raw/master/LICENSE"}],"scripts":{"prepublish":"./node_modules/.bin/uglifyjs -o build/jjv.min.js lib/jjv.js","pretest":"./node_modules/.bin/jshint -e 'js,json' ./lib ./test","test":"./node_modules/.bin/mocha -b -R spec ./test"},"main":"index.js","description":"A simple and extensible Javascript json-schema validator. Runs in the browser and in the server (through node.js), it has no dependencies and out-of-the-box AMD support.","bugs":{"url":"https://github.com/acornejo/jjv/issues"},"homepage":"https://github.com/acornejo/jjv","_id":"jjv@0.3.1","dist":{"shasum":"a443bf102446b36d1a24655aafa13c9d3bd2c398","tarball":"https://registry.npmjs.org/jjv/-/jjv-0.3.1.tgz","integrity":"sha512-Wqh3qEh9k13Ll2y8wjA3EHE7lWkbWHjVYDFhB6oBKXtQJkCbB+HrWjSiPQrz2yNW6CD3bOuXaQLYPmk4gt1QaQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDqXLaNjroKP2iefMRKcOqDbSiWpKGHsa9AC4nOLCg9gIhALnmw6s85bCMhZ2q9WGjRXHdkVbdb0Fu2/yiNUfwMzFM"}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"acornejo","email":"acornejo@gmail.com"},"maintainers":[{"name":"acornejo","email":"acornejo@gmail.com"}],"directories":{}},"0.3.2":{"name":"jjv","version":"0.3.2","author":{"name":"Alex Cornejo"},"devDependencies":{"chai":"~1.8.1","mocha":"~1.13.0","uglify-js":"~2.4.0","jshint":"~2.3.0"},"dependencies":{},"repository":{"type":"git","url":"https://github.com/acornejo/jjv.git","web":"https://github.com/acornejo/jjv"},"licenses":[{"type":"MIT","url":"http://github.com/acornejo/jjv/raw/master/LICENSE"}],"scripts":{"prepublish":"./node_modules/.bin/uglifyjs -o build/jjv.min.js lib/jjv.js","pretest":"./node_modules/.bin/jshint -e 'js,json' ./lib ./test","test":"./node_modules/.bin/mocha -b -R spec ./test"},"main":"index.js","description":"A simple and extensible json-schema validator written in javascript. JJV runs in the browser and in the server (through node.js), it has no dependencies and has out-of-the-box AMD support.","bugs":{"url":"https://github.com/acornejo/jjv/issues"},"homepage":"https://github.com/acornejo/jjv","_id":"jjv@0.3.2","dist":{"shasum":"2b4394c8f243748435900a3e8857524a687cd0dc","tarball":"https://registry.npmjs.org/jjv/-/jjv-0.3.2.tgz","integrity":"sha512-uHrVXMJ24RGCx2Jp8isKHVry+stDYUdDQjzGXm8wdMZCIbQQfZ1ntGYFPqxgDURGEMyFnju6q8g5ohojomY2NA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIXGPIs0OrJZwd+5k3oiBdUMhAEDYn2JEmE9yc5qpd+gIgTFnh39VENMWado/ohgdTdNMq6ou7zV2EkTCGtSS8fA8="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"acornejo","email":"acornejo@gmail.com"},"maintainers":[{"name":"acornejo","email":"acornejo@gmail.com"}],"directories":{}},"0.3.3":{"name":"jjv","version":"0.3.3","author":{"name":"Alex Cornejo"},"devDependencies":{"chai":"~1.8.1","mocha":"~1.13.0","uglify-js":"~2.4.0","jshint":"~2.3.0"},"dependencies":{},"repository":{"type":"git","url":"https://github.com/acornejo/jjv.git","web":"https://github.com/acornejo/jjv"},"licenses":[{"type":"MIT","url":"http://github.com/acornejo/jjv/raw/master/LICENSE"}],"scripts":{"prepublish":"./node_modules/.bin/uglifyjs -o build/jjv.min.js lib/jjv.js","pretest":"./node_modules/.bin/jshint -e 'js,json' ./lib ./test","test":"./node_modules/.bin/mocha -b -R spec ./test"},"main":"index.js","description":"A simple and extensible json-schema validator written in javascript. JJV runs in the browser and in the server (through node.js), it has no dependencies and has out-of-the-box AMD support.","bugs":{"url":"https://github.com/acornejo/jjv/issues"},"homepage":"https://github.com/acornejo/jjv","_id":"jjv@0.3.3","dist":{"shasum":"3ecc89db53dfced48b5da0866a227eae28c91858","tarball":"https://registry.npmjs.org/jjv/-/jjv-0.3.3.tgz","integrity":"sha512-jQ7uGUCtZH+pYVvmhCpKrdqMo69xlY5Gdfj4NnLMEDjG8qEzqqvNGHsxPmdGM6hDOaKqLqUxmLpIeWKApf8rsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxW4QWCdq0qP96eRjBB8ksqqbw+B18i6uSEbFpOlDZpQIhAJhCO4yDDCT3kOXutPs7WJos11/pTbLoK2ny/MEQSFgx"}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"acornejo","email":"acornejo@gmail.com"},"maintainers":[{"name":"acornejo","email":"acornejo@gmail.com"}]},"0.3.4":{"name":"jjv","version":"0.3.4","author":{"name":"Alex Cornejo"},"devDependencies":{"chai":"~1.8.1","mocha":"~1.13.0","uglify-js":"~2.4.0","jshint":"~2.3.0"},"dependencies":{},"repository":{"type":"git","url":"https://github.com/acornejo/jjv.git","web":"https://github.com/acornejo/jjv"},"licenses":[{"type":"MIT","url":"http://github.com/acornejo/jjv/raw/master/LICENSE"}],"scripts":{"prepublish":"./node_modules/.bin/uglifyjs -o build/jjv.min.js lib/jjv.js","pretest":"./node_modules/.bin/jshint -e 'js,json' ./lib ./test","test":"./node_modules/.bin/mocha -b -R spec ./test"},"main":"index.js","description":"A simple and extensible json-schema validator written in javascript. JJV runs in the browser and in the server (through node.js), it has no dependencies and has out-of-the-box AMD support.","bugs":{"url":"https://github.com/acornejo/jjv/issues"},"homepage":"https://github.com/acornejo/jjv","_id":"jjv@0.3.4","dist":{"shasum":"cd451c9e081bde431132049f2c6244db5503ee6b","tarball":"https://registry.npmjs.org/jjv/-/jjv-0.3.4.tgz","integrity":"sha512-CQc4+uhcSw7fyhNzC69SgWzL3K1PlNu8UsHxmTss7BnFpAAm9VWQcIVIyITG4xbGrdZoM7uoS8MIS1brIkbszw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG2SEPGiRkLQ95/VmjSarMgy7Q1dnADgw6DxCES4UrNPAiA8XQKXNuSiMo/jH8LD33ZdSk8SHF/QF85MS7F1y94SPw=="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"acornejo","email":"acornejo@gmail.com"},"maintainers":[{"name":"acornejo","email":"acornejo@gmail.com"}]},"1.0.0":{"name":"jjv","version":"1.0.0","author":{"name":"Alex Cornejo"},"devDependencies":{"chai":"~1.8.1","mocha":"~1.13.0","uglify-js":"~2.4.0","jshint":"~2.3.0"},"dependencies":{},"repository":{"type":"git","url":"https://github.com/acornejo/jjv.git","web":"https://github.com/acornejo/jjv"},"licenses":[{"type":"MIT","url":"http://github.com/acornejo/jjv/raw/master/LICENSE"}],"scripts":{"prepublish":"mkdir build; ./node_modules/.bin/uglifyjs -o build/jjv.min.js lib/jjv.js","pretest":"./node_modules/.bin/jshint -e 'js,json' ./lib ./test","test":"./node_modules/.bin/mocha -b -R spec ./test"},"main":"index.js","description":"A simple and extensible json-schema validator written in javascript. JJV runs in the browser and in the server (through node.js), it has no dependencies and has out-of-the-box AMD support.","bugs":{"url":"https://github.com/acornejo/jjv/issues"},"homepage":"https://github.com/acornejo/jjv","_id":"jjv@1.0.0","dist":{"shasum":"a15e0eaa33369051811ed10255aa56495d9becaf","tarball":"https://registry.npmjs.org/jjv/-/jjv-1.0.0.tgz","integrity":"sha512-ObMASFUlwV7u4eX/nbEjgb/OxS3VZpj/KjCjMo6ihzRFqqKm/OKlTCTNhgP/drmDzNt4T03WIpyeYcbrvkk4nw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0TOcBp4afRJCgPRqXDp48d3jcuM8rrQHVSPXHcBNGeAIgZa4E/tdgax3hJDdqJmF5dZakBnn/sMcjaAJUHqnMiL8="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"acornejo","email":"acornejo@gmail.com"},"maintainers":[{"name":"acornejo","email":"acornejo@gmail.com"}]},"1.0.2":{"name":"jjv","version":"1.0.2","author":{"name":"Alex Cornejo"},"devDependencies":{"chai":"~1.8.1","mocha":"~1.13.0","uglify-js":"~2.4.0","jshint":"~2.3.0"},"dependencies":{},"repository":{"type":"git","url":"https://github.com/acornejo/jjv.git","web":"https://github.com/acornejo/jjv"},"licenses":[{"type":"MIT","url":"http://github.com/acornejo/jjv/raw/master/LICENSE"}],"scripts":{"prepublish":"mkdir build; ./node_modules/.bin/uglifyjs -o build/jjv.min.js lib/jjv.js","pretest":"jshint -e 'js,json' ./lib ./test","test":"mocha -b -R spec ./test"},"main":"index.js","gitHead":"b788b26769fb8a00cdbdd5e97e1c376d79aadc3c","description":"A simple and extensible json-schema validator written in javascript. JJV runs in the browser and in the server (through node.js), it has no dependencies and has out-of-the-box AMD support.","bugs":{"url":"https://github.com/acornejo/jjv/issues"},"homepage":"https://github.com/acornejo/jjv","_id":"jjv@1.0.2","_shasum":"0719f2cbcfd7df34f8d57c1b03b332a0f8f66e7f","_from":".","_npmVersion":"2.0.0-beta.0","_npmUser":{"name":"acornejo","email":"acornejo@gmail.com"},"maintainers":[{"name":"acornejo","email":"acornejo@gmail.com"}],"dist":{"shasum":"0719f2cbcfd7df34f8d57c1b03b332a0f8f66e7f","tarball":"https://registry.npmjs.org/jjv/-/jjv-1.0.2.tgz","integrity":"sha512-IjuAyt9uqIA51mWUO1+TOuPstsGMV6rax73+zMm6C23Wwmq1UCGTJOXjlOTTQOCzthxAppmr++scJxQm+We+7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgQKWP3j1YE383MXIeN5nbdm7/IR4ox3xP3enkPK1CZAIgPZ55AvaqZz4i55ulL/UvEfqZbl8zAuuNfPu1ADoesEU="}]}}},"readme":"# JJV: JJV JSON Validator\n\nA simple and extensible json-schema validator written in javascript. JJV\nruns in the browser and in the server (through node.js), it has no\ndependencies and has out-of-the-box AMD support.\n\nJJV implements the latest (v4) JSON Schema Core draft, however due to\nperformance and security concerns remote schemas are not fetched. To\nensure compliance JJV is tested against JSON Schema Test Suite published\nby json-schema.org (and passes all tests). For examples and a detailed\ndescription of the JSON-schema specification visit\n[json-schema.org](http://json-schema.org).\n\nJJV is fast! For a detailed performance comparison visit z-schema's\n[benchmarks](https://rawgithub.com/zaggino/z-schema/master/benchmark/results.html)\nwebsite, which compares various javascript JSON schema validators.\n\n## Basic Usage\n\nIn the most basic usage an environment must be created, and one or more\nnamed schemas are registered in the environment (it is also possible to\nregister schemas with remote URI's in the same way). Javascript\nobjects can then be validated against any registered schema.\n\n```javascript\n// create new JJV environment\nvar env = jjv();\n\n// Register a `user` schema\nenv.addSchema('user', {\n    type: 'object',\n    properties: {\n        firstname: {\n            type: 'string',\n            minLength: 2,\n            maxLength: 15\n        },\n        lastname: {\n            type: 'string',\n            minLength: 2,\n            maxLength: 25\n        },\n        gender: {\n            type: 'string',\n            enum: ['male', 'female']\n        },\n        email: {\n            type: 'string',\n            format: 'email'\n        },\n        password: {\n            type: 'string',\n            minLength: 8\n        }\n    },\n    required: ['firstname', 'lastname', 'email', 'password']\n});\n\n// Perform validation against an incomplete user object (errors will be reported)\nvar errors = env.validate('user', {firstname: 'John', lastname: 'Smith'});\n\n// validation was successful\nif (!errors) {\n    alert('User has been validated.')\n} else {\n    alert('Failed with error object ' + JSON.stringify(errors));\n}\n```\n\nIt is also possible to validate objects against unregistered and/or\nunnamed schemas by supplying the schema object directly. For example:\n\n```javascript\nvar env = jjv();\n\nvar errors = env.validate({\n    type: 'object',\n    properties: {\n        x: {\n            type: 'number'\n        },\n        y: {\n            type: 'number'\n        }\n    },\n    required: ['x', 'y']\n }, {x: 20, y: 50});\n\n```\n\n## Validation Options\n\nJJV provides options to control the validation of required fields, the\nhandling of default values, and the handling of additional properties.\n\n<table>\n    <tr>\n        <th>Option</th>\n        <th>Default</th>\n        <th>Description</th>\n    </tr>\n    <tr>\n        <td>checkRequired</td>\n        <td>true</td>\n        <td>If true it reports missing required properties, otherwise it\n        allows missing required properties.</td>\n    </tr>\n    <tr>\n        <td>useDefault</td>\n        <td>false</td>\n        <td>If true it modifies the object to have the default values for\n        missing non-required fields.</td>\n    </tr>\n    <tr>\n        <td>useCoerce</td>\n        <td>false</td>\n        <td>If true it enables type coercion where defined.</td>\n    </tr>\n    <tr>\n        <td>removeAdditional</td>\n        <td>false</td>\n        <td>If true it removes all attributes of an object which are not\n        matched by the schema's specification.\n    </tr>\n</table>\n\nThe defaults can be overridden for the entire environment or on a\nper-validation basis. For example, to override the checkRequired option\nfor the entire environment simply do:\n\n```javascript\nenv.defaultOptions.checkRequired=false;\n```\n\nTo override the checkRequired option on a per-validation case do:\n\n```\nenv.validate('schemaName', object, {checkRequired: false});\n```\n\n## Advanced Usage\n\nJJV provides mechanisms to add support for custom types, custom formats,\nand custom checks.\n\n### Custom Types\n\nSupport for additional types can be added through the `addType`\nfunction. For example, a simple implementation of the `date` type could\nbe the following:\n\n```javascript\nenv.addType('date', function (v) {\n  return !isNan(Date.parse(v));\n});\n```\n\n### Custom Formats\n\nIt is also possible to add support for additional string formats through\nthe `addFormat` function. For example, an implementation of the\n`hexadecimal` string format (already included) could be as follows:\n\n```javascript\nenv.addFormat('hexadecimal', function (v) {\n    return (/^[a-fA-F0-9]+$/).test(v);\n});\n```\n\n### Custom Checks\n\nIt is possible to add support for custom checks (i.e.,\n`minItems`, `maxItems`, `minLength`, `maxLength`, etc.) through the\n`addCheck` function. For example, an implementation for an `exactLength`\nvalidation keyword that supports arrays and strings can be achieved with\nthe following:\n\n```javascript\nenv.addCheck('exactLength', function (v, p) {\n    return v.length === p;\n});\n```\n\n### Custom Type Coercion\n\nJJV allows custom type coercion rules. As an example, supposed that fields\nwhich are declared with as type `integer` are sometimes encoded as a string.\nType coercion allows you to specify that all types declared as `integer` should\nbe cast/coerced to an `integer` before performing validation.\n\n```javascript\nenv.addTypeCoercion('integer', function (x) {\n    return parseInt(x, 10);\n});\n```\n\nRecall to set the option `useCoerce` to `true` to enable this feature.\n\n## $data v5 proposal\n\nJJV supports the `$data` spec proposed for draft 5 of json-schema,\ncomplete with relative and absolute JSON pointers.\n\nFor information on how to use these feature see the proposal here:\n\n[$data-proposal](https://github.com/json-schema/json-schema/wiki/$data-(v5-proposal)).\n","maintainers":[{"name":"acornejo","email":"acornejo@gmail.com"}],"time":{"modified":"2022-06-19T04:31:44.927Z","created":"2013-11-14T19:50:27.356Z","0.1.0":"2013-11-14T19:50:28.439Z","0.1.1":"2013-11-14T19:52:05.294Z","0.1.2":"2014-01-15T21:39:27.803Z","0.2.0":"2014-01-25T21:06:27.730Z","0.2.1":"2014-01-26T00:12:36.366Z","0.3.0":"2014-02-06T23:22:09.390Z","0.3.1":"2014-02-07T06:11:26.535Z","0.3.2":"2014-02-07T17:21:06.714Z","0.3.3":"2014-02-07T23:28:13.268Z","0.3.4":"2014-03-02T15:31:42.324Z","1.0.0":"2014-03-24T04:55:55.426Z","1.0.2":"2014-08-27T17:35:14.395Z"},"author":{"name":"Alex Cornejo"},"repository":{"type":"git","url":"https://github.com/acornejo/jjv.git","web":"https://github.com/acornejo/jjv"},"readmeFilename":"README.md","homepage":"https://github.com/acornejo/jjv","bugs":{"url":"https://github.com/acornejo/jjv/issues"},"users":{"silas":true,"nrw":true,"mysticatea":true}}