{"_id":"mongo-json-schema","_rev":"33-49704b8b494ed92b5cfea6a465966278","name":"mongo-json-schema","description":"A schema validator for objects going into mongo","dist-tags":{"latest":"0.2.8"},"versions":{"0.0.1":{"name":"mongo-json-schema","version":"0.0.1","description":"A schema validator for objects going into mongo","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cainus/mongoJsonSchema.git"},"keywords":["mongo","schema","jsonschema"],"author":{"name":"Gregg Caines"},"license":"MIT","bugs":{"url":"https://github.com/cainus/mongoJsonSchema/issues"},"homepage":"https://github.com/cainus/mongoJsonSchema","dependencies":{"traverse":"0.6.6","JSV":"4.0.2","mongodb":"1.3.23","underscore":"1.5.2"},"devDependencies":{"deep-equal":"0.2.1","mocha":"1.17.1","should":"3.1.2","istanbul":"0.2.4","coveralls":"2.7.1","jshint":"2.4.3"},"_id":"mongo-json-schema@0.0.1","dist":{"shasum":"18b9119bccf69a38dd424acd44387cfe3929ba0f","tarball":"https://registry.npmjs.org/mongo-json-schema/-/mongo-json-schema-0.0.1.tgz","integrity":"sha512-zx0nvBkh5EQjekC5Zy278kp3CNE765jtPUtrDy1LptKm+Fbk3JhOrqP38OGaoQH/ELoPSrk28NIzEEfYq7JtLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3cbZRHSg8ITtU1SL94IGdVrCuYCMWpnm/EkSJkLc4IgIhAIS0KA0Ri3iPpcspZyZ4UI0icTtqGurna/tWd0e9VQoj"}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"cainus","email":"gregg@caines.ca"},"maintainers":[{"name":"cainus","email":"gregg@caines.ca"}],"directories":{}},"0.0.2":{"name":"mongo-json-schema","version":"0.0.2","description":"A schema validator for objects going into mongo","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cainus/mongoJsonSchema.git"},"keywords":["mongo","schema","jsonschema"],"author":{"name":"Gregg Caines"},"license":"MIT","bugs":{"url":"https://github.com/cainus/mongoJsonSchema/issues"},"homepage":"https://github.com/cainus/mongoJsonSchema","dependencies":{"traverse":"0.6.6","JSV":"4.0.2","mongodb":"1.3.23","underscore":"1.5.2","difflet":"0.2.6"},"devDependencies":{"deep-equal":"0.2.1","mocha":"1.17.1","should":"3.1.2","istanbul":"0.2.4","coveralls":"2.7.1","jshint":"2.4.3"},"_id":"mongo-json-schema@0.0.2","dist":{"shasum":"efe3e101ff1338d12802e6e213aa8bac2134df74","tarball":"https://registry.npmjs.org/mongo-json-schema/-/mongo-json-schema-0.0.2.tgz","integrity":"sha512-F0sDbgy9NzaO4tquLBg6TMSFUveaYxWQOZBI+qxNKZ0n0M5feLgxVm7NB5pzmenwiZKi4dmC6jmLTjtaRgIozg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGwfTs03Mvtqnm30Fkxf+zAVMmRBQV4hQ+PXQLDVhhX9AiBwGNMWWm0suiHhDeujI3+d26ggUu9omJe0q4MPA8VGLA=="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"cainus","email":"gregg@caines.ca"},"maintainers":[{"name":"cainus","email":"gregg@caines.ca"}],"directories":{}},"0.0.3":{"name":"mongo-json-schema","version":"0.0.3","description":"A schema validator for objects going into mongo","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cainus/mongoJsonSchema.git"},"keywords":["mongo","schema","jsonschema"],"author":{"name":"Gregg Caines"},"license":"MIT","bugs":{"url":"https://github.com/cainus/mongoJsonSchema/issues"},"homepage":"https://github.com/cainus/mongoJsonSchema","dependencies":{"traverse":"0.6.6","JSV":"4.0.2","mongodb":"1.3.23","underscore":"1.5.2","difflet":"0.2.6"},"devDependencies":{"deep-equal":"0.2.1","mocha":"1.17.1","should":"3.1.2","istanbul":"0.2.4","coveralls":"2.7.1","jshint":"2.4.3"},"_id":"mongo-json-schema@0.0.3","dist":{"shasum":"321d04cf139fef3f4b91779eeae1fdddc8c1a617","tarball":"https://registry.npmjs.org/mongo-json-schema/-/mongo-json-schema-0.0.3.tgz","integrity":"sha512-8tZpcF+2HXBORu4SVRQM0K80V4irt3pzaG0TZrqONQVGqnKD7c92mAWIPhJvRXDJDejWt+Vyep6soa3QfRiLRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEdvl8pQDEgasMk7D+0ohiuVkDTbF+yQztTj51YjKb1wIgGCESTPD8pMpqQFcU2qR6nGkuxrkGS+hQHvciEvgw96M="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"cainus","email":"gregg@caines.ca"},"maintainers":[{"name":"cainus","email":"gregg@caines.ca"}],"directories":{}},"0.0.4":{"name":"mongo-json-schema","version":"0.0.4","description":"A schema validator for objects going into mongo","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cainus/mongoJsonSchema.git"},"keywords":["mongo","schema","jsonschema"],"author":{"name":"Gregg Caines"},"license":"MIT","bugs":{"url":"https://github.com/cainus/mongoJsonSchema/issues"},"homepage":"https://github.com/cainus/mongoJsonSchema","dependencies":{"traverse":"0.6.6","JSV":"4.0.2","mongodb":"1.3.23","underscore":"1.5.2","difflet":"0.2.6"},"devDependencies":{"deep-equal":"0.2.1","mocha":"1.17.1","should":"3.1.2","istanbul":"0.2.4","coveralls":"2.7.1","jshint":"2.4.3"},"_id":"mongo-json-schema@0.0.4","dist":{"shasum":"a138eeca7d773762780f4df1c01feba2ff5c9dba","tarball":"https://registry.npmjs.org/mongo-json-schema/-/mongo-json-schema-0.0.4.tgz","integrity":"sha512-aDS9visKJQ4WJmMYU2gO3t+C5tz3ls8Yfw46mKgryL/Xz0FETz9MMql8VreTTsw96WDqglT234nxppURLbMFng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCA20wiGe9jqc9tNTorsLkiBHEbkzWbMdEpU3Qa3ZbMOgIhAOvar0LjrOxYud0N4yq1I4u3ad/fVmZcGdlRqPW/zjGP"}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"cainus","email":"gregg@caines.ca"},"maintainers":[{"name":"cainus","email":"gregg@caines.ca"}]},"0.0.7":{"name":"mongo-json-schema","version":"0.0.7","description":"A schema validator for objects going into mongo","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cainus/mongoJsonSchema.git"},"keywords":["mongo","schema","jsonschema"],"author":{"name":"Gregg Caines"},"license":"MIT","bugs":{"url":"https://github.com/cainus/mongoJsonSchema/issues"},"homepage":"https://github.com/cainus/mongoJsonSchema","dependencies":{"traverse":"0.6.6","JSV":"4.0.2","mongodb":"1.3.23","underscore":"1.5.2","difflet":"0.2.6"},"devDependencies":{"deep-equal":"0.2.1","mocha":"1.17.1","should":"3.1.2","istanbul":"0.2.4","coveralls":"2.7.1","jshint":"2.4.3"},"_id":"mongo-json-schema@0.0.7","dist":{"shasum":"f742d320130befc0420b9803faf0ff317c38fee8","tarball":"https://registry.npmjs.org/mongo-json-schema/-/mongo-json-schema-0.0.7.tgz","integrity":"sha512-6V+d+bETo6WB35ryIEPQTTKUJwjBoiv8Jtu6CeEecvY+SkDtWEDzLwZJfRGSlc+v5qE43VTLQXBBx+sySnLNQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBICTiUKi2J7Taipf2Fomy3RtlNgFNeEWSuNSCGe/yEIAiAI7B5BRgVQjOgO1IiaWz2Nl3/ABfb7CP/3hageuOQ5zg=="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"cainus","email":"gregg@caines.ca"},"maintainers":[{"name":"cainus","email":"gregg@caines.ca"}]},"0.0.8":{"name":"mongo-json-schema","version":"0.0.8","description":"A schema validator for objects going into mongo","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cainus/mongoJsonSchema.git"},"keywords":["mongo","schema","jsonschema"],"author":{"name":"Gregg Caines"},"license":"MIT","bugs":{"url":"https://github.com/cainus/mongoJsonSchema/issues"},"homepage":"https://github.com/cainus/mongoJsonSchema","dependencies":{"traverse":"0.6.6","JSV":"4.0.2","mongodb":"1.3.23","underscore":"1.5.2","difflet":"0.2.6"},"devDependencies":{"deep-equal":"0.2.1","mocha":"1.17.1","should":"3.1.2","istanbul":"0.2.4","coveralls":"2.7.1","jshint":"2.4.3"},"_id":"mongo-json-schema@0.0.8","dist":{"shasum":"8a375e5df0b0a5c5a810be14755ee8e4bd5ac1d4","tarball":"https://registry.npmjs.org/mongo-json-schema/-/mongo-json-schema-0.0.8.tgz","integrity":"sha512-OUTyvLCYvyMbvY59Xt2vLzrDcgcM1Qv5YEqvwhy7uEgt/VvyUXeG5FzmR4w+HE+ub93GGaE//s/RR7eAUbj21g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4NwbeLQSFBI23fB/ZKNN6hQy33EG1poomjcrwyrYb3gIgaYd9VXHv4B07uLZqmZ10rkbAMUqy7ZBRfuRljOooHek="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"cainus","email":"gregg@caines.ca"},"maintainers":[{"name":"cainus","email":"gregg@caines.ca"}]},"0.1.0":{"name":"mongo-json-schema","version":"0.1.0","description":"A schema validator for objects going into mongo","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cainus/mongoJsonSchema.git"},"keywords":["mongo","schema","jsonschema"],"author":{"name":"Gregg Caines"},"license":"MIT","bugs":{"url":"https://github.com/cainus/mongoJsonSchema/issues"},"homepage":"https://github.com/cainus/mongoJsonSchema","dependencies":{"traverse":"0.6.6","JSV":"4.0.2","mongodb":"1.3.23","underscore":"1.5.2","difflet":"0.2.6"},"devDependencies":{"deep-equal":"0.2.1","mocha":"1.17.1","should":"3.1.2","istanbul":"0.2.4","coveralls":"2.7.1","jshint":"2.4.3"},"_id":"mongo-json-schema@0.1.0","dist":{"shasum":"59198758ecaf9eb18ff24e23af235308cde7b5fb","tarball":"https://registry.npmjs.org/mongo-json-schema/-/mongo-json-schema-0.1.0.tgz","integrity":"sha512-Ndq7Jn7KCJbtQ3IlH4SSqpek/BZoPDlxwyRvTzqAB2bYsxmAjwaIRjfjRc2WTnHPgCXpcVHydkfU0+dn1xrHqA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDzSNk/9WewmbWVR3hxB/SjaEIgeyJlkmF+vH4UyxGr6AiA2rI2j+QOHNkZNzvBAbGO2QPvbmULmhPN2qgTluAVIBw=="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"cainus","email":"gregg@caines.ca"},"maintainers":[{"name":"cainus","email":"gregg@caines.ca"}]},"0.2.0":{"name":"mongo-json-schema","version":"0.2.0","description":"A schema validator for objects going into mongo","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cainus/mongoJsonSchema.git"},"keywords":["mongo","schema","jsonschema"],"author":{"name":"Gregg Caines"},"license":"MIT","bugs":{"url":"https://github.com/cainus/mongoJsonSchema/issues"},"homepage":"https://github.com/cainus/mongoJsonSchema","dependencies":{"traverse":"0.6.6","JSV":"4.0.2","mongodb":"1.3.23","underscore":"1.5.2","difflet":"0.2.6"},"devDependencies":{"deep-equal":"0.2.1","mocha":"1.17.1","should":"3.1.2","istanbul":"0.2.4","coveralls":"2.7.1","jshint":"2.4.3"},"_id":"mongo-json-schema@0.2.0","dist":{"shasum":"32305a36a8743304c1d30303e1590443d2819768","tarball":"https://registry.npmjs.org/mongo-json-schema/-/mongo-json-schema-0.2.0.tgz","integrity":"sha512-+b3Tm4pJiuWjQ7f+OuC8zbGTTdMDsevFhXBP0tDEPDAabdaGQeZp7zkphddhwZY0fnzwPY6ha25/u7CM6tEtAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG+2X8IARMZ3xhZIH+TWGvzm0GcjDm/d8wyG2GKvVQ7qAiBtwJObAUs1mkY53MSHaDV+NLJQt6IzftHlD+Y3w01k9g=="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"cainus","email":"gregg@caines.ca"},"maintainers":[{"name":"cainus","email":"gregg@caines.ca"}]},"0.2.1":{"name":"mongo-json-schema","version":"0.2.1","description":"A schema validator for objects going into mongo","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cainus/mongoJsonSchema.git"},"keywords":["mongo","schema","jsonschema"],"author":{"name":"Gregg Caines"},"license":"MIT","bugs":{"url":"https://github.com/cainus/mongoJsonSchema/issues"},"homepage":"https://github.com/cainus/mongoJsonSchema","dependencies":{"traverse":"0.6.6","JSV":"4.0.2","mongodb":"1.3.23","underscore":"1.5.2","difflet":"0.2.6"},"devDependencies":{"deep-equal":"0.2.1","mocha":"1.17.1","should":"3.1.2","istanbul":"0.2.4","coveralls":"2.7.1","jshint":"2.4.3"},"_id":"mongo-json-schema@0.2.1","dist":{"shasum":"638bc3f66a203fab9b9e8c7b84d42018986cf93d","tarball":"https://registry.npmjs.org/mongo-json-schema/-/mongo-json-schema-0.2.1.tgz","integrity":"sha512-5jT/0gGEoIYGENTybRwxwtwBpfUdoT/cIleuFgZoI9vdOPCXEVP/Tq/rZBMFEGtRd+whVcX/+AliUAjCT6JTBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID7fyYWdb6HlMgvoBB/XBq16xBpKBAti/AAqEEax9GEEAiA2wslGKCMFmUhkaNQPY0KPN20gCYU1MLb+Fn4HceVXAw=="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"cainus","email":"gregg@caines.ca"},"maintainers":[{"name":"cainus","email":"gregg@caines.ca"}]},"0.2.2":{"name":"mongo-json-schema","version":"0.2.2","description":"A schema validator for objects going into mongo","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cainus/mongoJsonSchema.git"},"keywords":["mongo","schema","jsonschema"],"author":{"name":"Gregg Caines"},"license":"MIT","bugs":{"url":"https://github.com/cainus/mongoJsonSchema/issues"},"homepage":"https://github.com/cainus/mongoJsonSchema","dependencies":{"traverse":"0.6.6","JSV":"4.0.2","mongodb":"1.3.23","underscore":"1.5.2","difflet":"0.2.6"},"devDependencies":{"deep-equal":"0.2.1","mocha":"1.17.1","should":"3.1.2","istanbul":"0.2.4","coveralls":"2.7.1","jshint":"2.4.3"},"_id":"mongo-json-schema@0.2.2","dist":{"shasum":"5e4f2a44049c39f2b02c8491008bec75c8379b2b","tarball":"https://registry.npmjs.org/mongo-json-schema/-/mongo-json-schema-0.2.2.tgz","integrity":"sha512-Ix/soWgn8Fn1go17q44rrQLYK+iwrTJfx8Ag7uKpfi3kr8IHbIZT/oLTpUiOvv1FY8TQ2p6QPPz7Ao9AAiyoaw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHaZKsDFOmgMtsQrGdoxyXfnnLmbHGx7Rl0qkzj5ZAHAAiEAq22BTNylAmr9aWqUlAs8cYCZJoDz3sVO22vzHmxrs9U="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"cainus","email":"gregg@caines.ca"},"maintainers":[{"name":"cainus","email":"gregg@caines.ca"}]},"0.2.4":{"name":"mongo-json-schema","version":"0.2.4","description":"A schema validator for objects going into mongo","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cainus/mongoJsonSchema.git"},"keywords":["mongo","schema","jsonschema"],"author":{"name":"Gregg Caines"},"license":"MIT","bugs":{"url":"https://github.com/cainus/mongoJsonSchema/issues"},"homepage":"https://github.com/cainus/mongoJsonSchema","dependencies":{"traverse":"0.6.6","JSV":"4.0.2","mongodb":"1.3.23","underscore":"1.5.2","difflet":"0.2.6"},"devDependencies":{"deep-equal":"0.2.1","mocha":"1.17.1","should":"3.1.2","istanbul":"0.2.4","coveralls":"2.7.1","jshint":"2.4.3"},"_id":"mongo-json-schema@0.2.4","dist":{"shasum":"fa27e61014304d6a90d5d83db369221044e41b77","tarball":"https://registry.npmjs.org/mongo-json-schema/-/mongo-json-schema-0.2.4.tgz","integrity":"sha512-oOt96YBBxeD2UkinSYOE3w0vJjouox8VRaglt1Aai44GNu30QLQM6hgqgqHKfhESD4MHBiyqduwea9ImQjn8Xw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNTWfx624VXyc94WukINa3/36qNWB8U2aWWRNY87V50wIhAJ3S51vba4Lk790Qw/bB5MYJKkBBeJ2H62gagcIreO8m"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"cainus","email":"gregg@caines.ca"},"maintainers":[{"name":"cainus","email":"gregg@caines.ca"}]},"0.2.5":{"name":"mongo-json-schema","version":"0.2.5","description":"A schema validator for objects going into mongo","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cainus/mongoJsonSchema.git"},"keywords":["mongo","schema","jsonschema"],"author":{"name":"Gregg Caines"},"license":"MIT","bugs":{"url":"https://github.com/cainus/mongoJsonSchema/issues"},"homepage":"https://github.com/cainus/mongoJsonSchema","dependencies":{"traverse":"0.6.6","JSV":"4.0.2","mongodb":"1.3.23","underscore":"1.5.2","difflet":"0.2.6"},"devDependencies":{"deep-equal":"0.2.1","mocha":"1.17.1","should":"3.1.2","istanbul":"0.2.4","coveralls":"2.7.1","jshint":"2.4.3"},"_id":"mongo-json-schema@0.2.5","dist":{"shasum":"08d44a925b34674242982d73bc96ac7065e43dbd","tarball":"https://registry.npmjs.org/mongo-json-schema/-/mongo-json-schema-0.2.5.tgz","integrity":"sha512-qPI5GPvJd4lDHAp9a0Vdz4gKU416rGUlPbs5Jt9OJx71zhUJor2S+4MGXaoDT+aoTDgIkmGn/uxTmIDwXIi0uw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZGJZWRyPZy0+eadoQ4iviT1NjKh9TKOJZTKgb8870/AIgHIB5HvHRefELn8A5j2UlTubA5AL8TN2LOx3kdOJdgnE="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"cainus","email":"gregg@caines.ca"},"maintainers":[{"name":"cainus","email":"gregg@caines.ca"}]},"0.2.6":{"name":"mongo-json-schema","version":"0.2.6","description":"A schema validator for objects going into mongo","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cainus/mongoJsonSchema.git"},"keywords":["mongo","schema","jsonschema"],"author":{"name":"Gregg Caines"},"license":"MIT","bugs":{"url":"https://github.com/cainus/mongoJsonSchema/issues"},"homepage":"https://github.com/cainus/mongoJsonSchema","dependencies":{"traverse":"0.6.6","JSV":"4.0.2","mongodb":"1.3.23","underscore":"1.5.2","difflet":"0.2.6"},"devDependencies":{"deep-equal":"0.2.1","mocha":"1.17.1","should":"3.1.2","istanbul":"0.2.4","coveralls":"2.7.1","jshint":"2.4.3"},"_id":"mongo-json-schema@0.2.6","_shasum":"1515dccbe7f02099a4ba8e15197889249e165540","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"cainus","email":"gregg@caines.ca"},"maintainers":[{"name":"cainus","email":"gregg@caines.ca"},{"name":"peterkhayes","email":"peter.k.hayes@gmail.com"}],"dist":{"shasum":"1515dccbe7f02099a4ba8e15197889249e165540","tarball":"https://registry.npmjs.org/mongo-json-schema/-/mongo-json-schema-0.2.6.tgz","integrity":"sha512-58OXGITkjCtu+DUmiFc3OTwC0WaxiThR3CrdPpmRA6RVDL4nOet3wfN5q6lixHmCJG89nSnic5c0M349VWcohg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhAdTO+ZB3otGga1LurqyG/b/RBEupfYwiaXgY+mjUkwIgUgRQH3DGK5zmYFOMahvGJlNUyzH6dk6VoQ+FNmKHoP8="}]}},"0.2.7":{"name":"mongo-json-schema","version":"0.2.7","description":"A schema validator for objects going into mongo","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cainus/mongoJsonSchema.git"},"keywords":["mongo","schema","jsonschema"],"author":{"name":"Gregg Caines"},"license":"MIT","bugs":{"url":"https://github.com/cainus/mongoJsonSchema/issues"},"homepage":"https://github.com/cainus/mongoJsonSchema","dependencies":{"traverse":"0.6.6","JSV":"4.0.2","mongodb":"1.3.23","underscore":"1.5.2","difflet":"0.2.6"},"devDependencies":{"deep-equal":"0.2.1","mocha":"1.17.1","should":"3.1.2","istanbul":"0.2.4","coveralls":"2.7.1","jshint":"2.4.3"},"_id":"mongo-json-schema@0.2.7","dist":{"shasum":"07cf18fcafd4c11f9ccd0458220d0037295ee670","tarball":"https://registry.npmjs.org/mongo-json-schema/-/mongo-json-schema-0.2.7.tgz","integrity":"sha512-4jR49LANvsQ4IQT8JjsUcKD8LJcaO5N+pMwk1r0rrVt4kiqHykRq+Zfb78VbmqmJsIJm7IYzNsoK0OZu8wGzJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAMKaHx1jyyzbUZdAvcEyEgp2ONlFvPZJdhSqEZSroATAiEA0zMN2zvQhQLCakEzkqgRNKIV9wPumx25XuLByuLoxDE="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"peterkhayes","email":"peter.k.hayes@gmail.com"},"maintainers":[{"name":"cainus","email":"gregg@caines.ca"},{"name":"peterkhayes","email":"peter.k.hayes@gmail.com"}]},"0.2.8":{"name":"mongo-json-schema","version":"0.2.8","description":"A schema validator for objects going into mongo","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cainus/mongoJsonSchema.git"},"keywords":["mongo","schema","jsonschema"],"author":{"name":"Gregg Caines"},"license":"MIT","bugs":{"url":"https://github.com/cainus/mongoJsonSchema/issues"},"homepage":"https://github.com/cainus/mongoJsonSchema","dependencies":{"traverse":"0.6.6","JSV":"4.0.2","mongodb":"1.3.23","underscore":"1.5.2","difflet":"0.2.6"},"devDependencies":{"deep-equal":"0.2.1","mocha":"1.17.1","should":"3.1.2","istanbul":"0.2.4","coveralls":"2.7.1","jshint":"2.4.3"},"gitHead":"d70cf777041bdb1379c9b3d868f58fd9bb4ef1e4","_id":"mongo-json-schema@0.2.8","_shasum":"ca7d9b495e9eba939e661aff12ae864eaf8a69b8","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"cainus","email":"gregg@caines.ca"},"maintainers":[{"name":"cainus","email":"gregg@caines.ca"},{"name":"peterkhayes","email":"peter.k.hayes@gmail.com"}],"dist":{"shasum":"ca7d9b495e9eba939e661aff12ae864eaf8a69b8","tarball":"https://registry.npmjs.org/mongo-json-schema/-/mongo-json-schema-0.2.8.tgz","integrity":"sha512-hOkyVW7pygu1Op0opml0Z/oIrQfsYQhUvKp9ffOVvcVOJl6EsXrq/YDwP9AN4HXB+/aKIsPPYP+QBBE/j/99bw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSSPjapIbqvxkP9rQYuBDAcQucVlqMIGnolZeZyj2ghgIgRwmMq4/ZHE6vUK9L9KlUyo9P34/9FPZBC517HpP5upo="}]}}},"readme":"#mongo-json-schema\n\nThis is a library for validating objects against a jsonSchema before inserting into (and after retrieving from) mongo.\n### Creating a schema object\n```javascript  \nvar Schema = require('mongo-json-schema');\nvar schema = Schema({\n  nested: {\n    type: 'object',\n    properties: {\n      sub: {\n        type: \"objectid\"\n      }\n    }\n  },\n  count: {\n    type: \"number\",\n    required: false\n  },\n  participants: {\n    type: \"array\",\n    items: {\n      type: \"objectid\",\n    }\n  }\n});\n  \n```\n\n### Validating an input object\n```javascript\nschema.validate({\n  _id '52f044dee2896a8264d7ec2f',\n  nested: {\n      sub: '52f044dee2896a8264d7ec2f'\n  }\n})\n// throws errors if its not valid!\n```\n\n### Getting a standard jsonSchema\n```javascript\nschema.toJsonSchema();\n```\n\nreturns:\n```javascript\n{\n  {\n    type: 'object',\n    properties: {\n      _id: {\n        type: \"string\",\n        pattern: \"^[a-fA-F0-9]{24}$\",\n        required: true\n      },\n      nested: {\n        type: 'object',\n        properties: {\n          sub: {\n            type: \"string\",\n            pattern: \"^[a-fA-F0-9]{24}$\",\n          }\n        }\n      },\n      count: {\n        type: \"number\",\n        required: false\n      },\n      participants: {\n        type: \"array\",\n        items: {\n          type: \"string\",\n          pattern: \"^[a-fA-F0-9]{24}$\"\n        }\n      }\n    }\n  }\n}\n```\n###getting an object with strings for ids\n```javascript\n  schema.idsToStrings({\n    _id: ObjectID('52f044dee2896a8264d7ec2f'),\n    nested: {\n      sub: ObjectID('52f044dee2896a8264d7ec2f'),\n    },\n    count: 42,\n    participants: [ObjectID('52f044dee2896a8264d7ec2f'),ObjectID('52f044dee2896a8264d7ec2f')]\n  });\n```\nreturns:\n```javascript\n{\n  _id: '52f044dee2896a8264d7ec2f',\n  nested: {\n    sub: '52f044dee2896a8264d7ec2f',\n  },\n  count: 42,\n  participants: ['52f044dee2896a8264d7ec2f','52f044dee2896a8264d7ec2f']\n}\n```\n\n###getting an object with ObjectIDs for ids\n```javascript\nschema.stringsToIds({\n  _id: '52f044dee2896a8264d7ec2f',\n  nested: {\n    sub: '52f044dee2896a8264d7ec2f',\n  },\n  count: 42,\n  participants: ['52f044dee2896a8264d7ec2f','52f044dee2896a8264d7ec2f']\n});\n```\nreturns:\n```javascript\n{\n  _id: ObjectID('52f044dee2896a8264d7ec2f'),\n  nested: {\n    sub: ObjectID('52f044dee2896a8264d7ec2f'),\n  },\n  count: 42,\n  participants: [ObjectID('52f044dee2896a8264d7ec2f'),ObjectID('52f044dee2896a8264d7ec2f')]\n}\n```\n\n\n\n","maintainers":[{"name":"cainus","email":"gregg@caines.ca"},{"name":"peterkhayes","email":"peter.k.hayes@gmail.com"}],"time":{"modified":"2022-06-20T05:51:33.822Z","created":"2014-02-04T22:26:13.321Z","0.0.1":"2014-02-04T22:26:13.321Z","0.0.2":"2014-02-06T19:55:32.233Z","0.0.3":"2014-02-07T18:18:11.057Z","0.0.4":"2014-02-07T19:47:55.099Z","0.0.7":"2014-02-12T00:38:50.089Z","0.0.8":"2014-02-12T19:05:28.608Z","0.1.0":"2014-02-12T20:42:14.416Z","0.2.0":"2014-02-13T18:51:49.985Z","0.2.1":"2014-02-20T21:48:05.787Z","0.2.2":"2014-02-26T18:52:11.450Z","0.2.4":"2014-04-18T22:27:47.920Z","0.2.5":"2014-04-18T22:29:47.360Z","0.2.6":"2014-05-21T01:53:10.114Z","0.2.7":"2014-07-23T18:43:01.438Z","0.2.8":"2014-08-05T05:21:59.407Z"},"readmeFilename":"README.md","homepage":"https://github.com/cainus/mongoJsonSchema","keywords":["mongo","schema","jsonschema"],"repository":{"type":"git","url":"git://github.com/cainus/mongoJsonSchema.git"},"author":{"name":"Gregg Caines"},"bugs":{"url":"https://github.com/cainus/mongoJsonSchema/issues"},"license":"MIT","users":{"davidjamesstone":true}}