{"_id":"@aboveyou00/json-schema-validator","_rev":"2-3290d3a3421b3f583e8c306d9b2ce420","name":"@aboveyou00/json-schema-validator","description":"JSON schema validator","dist-tags":{"latest":"1.1.1"},"versions":{"1.1.0":{"name":"@aboveyou00/json-schema-validator","version":"1.1.0","description":"JSON schema validator","repository":{"type":"git","url":"git+https://github.com/Magomogo/json-schema-validator.git"},"main":"src/validator.js","scripts":{"test":"mocha ./tests","posttest":"jshint ./src ./tests ./scripts"},"bin":{"json-validate":"./scripts/json-validate.js"},"author":{"name":"Maxim Gnatenko","email":"mgnatenko@gmail.com"},"license":"MIT","dependencies":{"async":"^2.4.1","request":"^2.61.0","tv4":"^1.2.3","tv4-formats":"^3.0.0"},"devDependencies":{"jshint":"^2.8.0","mocha":"^3.4.2","sinon":"^2.3.2"},"gitHead":"87d0e610886c9121bdb8e42514c40fedf1da9a5b","bugs":{"url":"https://github.com/Magomogo/json-schema-validator/issues"},"homepage":"https://github.com/Magomogo/json-schema-validator#readme","_id":"@aboveyou00/json-schema-validator@1.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"aboveyou00","email":"brandonyoyoslade@gmail.com"},"dist":{"integrity":"sha512-CU8Sl3z/o3UBhBUhrQlfGi8jJJIJir8P/P83HcaOchH3UIz5KDm0N+QR9QFnqymQmuwU9bvkbtWu89JD2nV84g==","shasum":"0104a75b19c1576957f876a882123ad59032058b","tarball":"https://registry.npmjs.org/@aboveyou00/json-schema-validator/-/json-schema-validator-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzT50FuWi4WGJvdcuUjn/W0TrfKpVAr32u77C4TKmbWgIhAMndBtDRxU8MfQAJdM2reeCKZCCLvt0NMh+AO7OCO5ip"}]},"maintainers":[{"name":"aboveyou00","email":"brandonyoyoslade@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-schema-validator-1.1.0.tgz_1510521707851_0.3011764392722398"}},"1.1.1":{"name":"@aboveyou00/json-schema-validator","version":"1.1.1","description":"JSON schema validator","repository":{"type":"git","url":"git+https://github.com/Magomogo/json-schema-validator.git"},"main":"src/validator.js","scripts":{"test":"mocha ./tests","posttest":"jshint ./src ./tests ./scripts"},"bin":{"json-validate":"./scripts/json-validate.js"},"author":{"name":"Maxim Gnatenko","email":"mgnatenko@gmail.com"},"license":"MIT","dependencies":{"async":"^2.4.1","request":"^2.61.0","tv4":"^1.2.3","tv4-formats":"^3.0.0"},"devDependencies":{"jshint":"^2.8.0","mocha":"^3.4.2","sinon":"^2.3.2"},"gitHead":"9713ba796a8ec866a71f2405ba390e0d78f8a524","bugs":{"url":"https://github.com/Magomogo/json-schema-validator/issues"},"homepage":"https://github.com/Magomogo/json-schema-validator#readme","_id":"@aboveyou00/json-schema-validator@1.1.1","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"aboveyou00","email":"brandonyoyoslade@gmail.com"},"dist":{"integrity":"sha512-ZbRkG+zz35Wo1BLTTFG8cOMYhmtWBXIhOgbMJphbbyXJAJw+nqAaff3+IAP/T+tHxYlbmv6AT4nJeQ6GUXLgpw==","shasum":"c77e7d5967beb81a72ef5243f2a9d8b099a13037","tarball":"https://registry.npmjs.org/@aboveyou00/json-schema-validator/-/json-schema-validator-1.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgpOdevKRXwVrzNchzR3830uGX+gOq9T3VbgFLMdyhlQIgC0P5FZQOm6Nxrt0CJHePviZPDDhrIlmlqsMLsJu+rmE="}]},"maintainers":[{"name":"aboveyou00","email":"brandonyoyoslade@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-schema-validator-1.1.1.tgz_1510522584311_0.6822443485725671"}}},"readme":"[![Build Status](https://travis-ci.org/aboveyou00/json-schema-validator.svg)](https://travis-ci.org/aboveyou00/json-schema-validator)\n\n@aboveyou00/json-schema-validator\n=====================\n\nThis package uses the [tv4](https://www.npmjs.org/package/tv4) JSON Schema validator, and the\nformats provided by the [tv4-formats](https://github.com/ikr/tv4-formats/). It loads all the referenced\nJSON schemas over the internet to bootstrap tv4.\n\n## Usage\n\n    Validator.simple('http://json-schema.org/geo', function (error, v) {\n        assert.ifError(error);\n\n        assert(v.validate(\n            {latitude: 53.0, longitude: 43.0},\n            'http://json-schema.org/geo'\n        ).valid);\n\n        done();\n    });\n    \n\n### CLI\n\n    echo '{\"json\": \"to validate\"}' | json-validate http://some.type.id/\n    \n## API\n\n\nConstructor:\n\n    v = new Validator(schemaUris);\n    \nschemaUris: array of schema Uris to load (can be a string in the case of single URI)\n\n--\n\n    v.fetchSchemas(schemaLoader, callback)\n  \nLoad schemas over the net with `schemaLoader(url, callback)` and add to tv4 validator. All URI-s to\nbe loaded: given in constructor and referenced by \"$ref\" clause in each loaded schema. Circular\nreferences get resolved.\n\n--\n\n    v.validate(json, typeId)\n    \nDo validation of `json` against schema defined by `typeId`\n\nPossible type Ids are:\n\n* http://json-schema.org/geo\n* http://some.site.somewhere/entry-schema#/definitions/diskUUID\n\n`validate()` returns the tv4 validation\n[result object](https://github.com/geraintluff/tv4#usage-2-multi-threaded-validation). It will throw\nan `Error` if the schema for the passed `typeId` has not been loaded (fetched).\n\n--\n\n    Validator.simple(uris, callback)\n    \nJust a shortcut for getting validator bootstrapped using `request` as schema loader\n","maintainers":[{"name":"aboveyou00","email":"brandonyoyoslade@gmail.com"}],"time":{"modified":"2022-04-04T11:00:45.515Z","created":"2017-11-12T21:21:47.969Z","1.1.0":"2017-11-12T21:21:47.969Z","1.1.1":"2017-11-12T21:36:24.524Z"},"homepage":"https://github.com/Magomogo/json-schema-validator#readme","repository":{"type":"git","url":"git+https://github.com/Magomogo/json-schema-validator.git"},"author":{"name":"Maxim Gnatenko","email":"mgnatenko@gmail.com"},"bugs":{"url":"https://github.com/Magomogo/json-schema-validator/issues"},"license":"MIT","readmeFilename":"README.md"}