{"_id":"json-schema-compare","_rev":"3-2abb60295978bdd3f14c913a7873ea24","name":"json-schema-compare","description":"Compare json schemas smarter.","dist-tags":{"latest":"0.2.2"},"versions":{"0.2.0":{"name":"json-schema-compare","version":"0.2.0","description":"Compare json schemas smarter.","main":"src/index.js","scripts":{"eslint":"eslint src test","test":"npm run eslint && nyc --reporter=html --reporter=text mocha test/specs","develop":"mocha test/specs --recursive --watch","coverage":"nyc report --reporter=text-lcov | coveralls"},"directories":{"lib":"src","test":"test"},"repository":{"type":"git","url":"git+https://github.com/mokkabonna/json-schema-compare.git"},"keywords":["json","schema","jsonschema","json-schema","comparison"],"author":{"name":"Martin Hansen"},"license":"MIT","bugs":{"url":"https://github.com/mokkabonna/json-schema-compare/issues"},"homepage":"https://github.com/mokkabonna/json-schema-compare#readme","devDependencies":{"chai":"^4.1.2","coveralls":"^3.0.0","eslint":"^4.8.0","eslint-config":"^0.3.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.7.0","eslint-plugin-node":"^5.2.0","eslint-plugin-promise":"^3.5.0","eslint-plugin-standard":"^3.0.1","json-schema-ref-parser":"^3.3.1","json-stringify-safe":"^5.0.1","mocha":"^4.0.1","nyc":"^11.2.1","sinon":"^4.0.1"},"dependencies":{"lodash":"^4.17.4"},"gitHead":"9763007a8d1acf972f8783e8ccc1fe3ea46d1b13","_id":"json-schema-compare@0.2.0","_npmVersion":"5.0.3","_nodeVersion":"8.5.0","_npmUser":{"name":"mokkabonna","email":"martin@martinhansen.no"},"dist":{"integrity":"sha512-Jq2hpFFr9zsqQNkxHrQuNQ8XMKBuYoj2N+tbzUZ6sn1nTHDoVOy6cxUQTXD6jRSk24w+mjL7wwJevRiIsiIxGA==","shasum":"f5e399156f7bd4124d3c3061324f7012f3d087af","tarball":"https://registry.npmjs.org/json-schema-compare/-/json-schema-compare-0.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHiAD0g87uxvsE0zpdI1942TnfK9txHfNdKgnjHHx2KUAiEA6qAQcOyUhzQR+ZlHeqCNL9nrhhVE+D6pc9g2kQfmXtI="}]},"maintainers":[{"name":"mokkabonna","email":"martin@martinhansen.no"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-schema-compare-0.2.0.tgz_1508619868912_0.9827559771947563"}},"0.2.1":{"name":"json-schema-compare","version":"0.2.1","description":"Compare json schemas smarter.","main":"src/index.js","scripts":{"eslint":"eslint src test","test":"npm run eslint && nyc --reporter=html --reporter=text mocha test/specs","develop":"mocha test/specs --recursive --watch","coverage":"nyc report --reporter=text-lcov | coveralls"},"directories":{"lib":"src","test":"test"},"repository":{"type":"git","url":"git+https://github.com/mokkabonna/json-schema-compare.git"},"keywords":["json","schema","jsonschema","json-schema","comparison"],"author":{"name":"Martin Hansen"},"license":"MIT","bugs":{"url":"https://github.com/mokkabonna/json-schema-compare/issues"},"homepage":"https://github.com/mokkabonna/json-schema-compare#readme","devDependencies":{"chai":"^4.1.2","coveralls":"^3.0.0","eslint":"^4.8.0","eslint-config":"^0.3.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.7.0","eslint-plugin-node":"^5.2.0","eslint-plugin-promise":"^3.5.0","eslint-plugin-standard":"^3.0.1","json-schema-ref-parser":"^3.3.1","json-stringify-safe":"^5.0.1","mocha":"^4.0.1","nyc":"^11.2.1","sinon":"^4.0.1"},"dependencies":{"lodash":"^4.17.4"},"gitHead":"8ba75694d4bac3f0297aa89617e106de5bb50a9c","_id":"json-schema-compare@0.2.1","_npmVersion":"5.0.3","_nodeVersion":"8.5.0","_npmUser":{"name":"mokkabonna","email":"martin@martinhansen.no"},"dist":{"integrity":"sha512-hITgATATjfkaPOlmbl/CwMzid5yhDk2X2VeOoiLKmIA2clS+2Hhk3717L78DGMqjwLb1oAhwe/pjjXO0dD4THQ==","shasum":"b6d87791860a1c4a35bdad6507e451c8743c27bb","tarball":"https://registry.npmjs.org/json-schema-compare/-/json-schema-compare-0.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFUxWk/OemfuqJJwFAvZv8SRL7+tZEqwrM37EcdkdZ4wIhAPW9uHYpJmQZkSMtjPDF/gVuk1H6WfOOcZpvv0086Ryn"}]},"maintainers":[{"name":"mokkabonna","email":"martin@martinhansen.no"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-schema-compare-0.2.1.tgz_1508630643188_0.6181341782212257"}},"0.2.2":{"name":"json-schema-compare","version":"0.2.2","description":"Compare json schemas smarter.","main":"src/index.js","scripts":{"eslint":"eslint src test","test":"npm run eslint && nyc --reporter=html --reporter=text mocha test/specs","develop":"mocha test/specs --recursive --watch","coverage":"nyc report --reporter=text-lcov | coveralls"},"directories":{"lib":"src","test":"test"},"repository":{"type":"git","url":"git+https://github.com/mokkabonna/json-schema-compare.git"},"keywords":["json","schema","jsonschema","json-schema","comparison"],"author":{"name":"Martin Hansen"},"license":"MIT","bugs":{"url":"https://github.com/mokkabonna/json-schema-compare/issues"},"homepage":"https://github.com/mokkabonna/json-schema-compare#readme","devDependencies":{"chai":"^4.1.2","coveralls":"^3.0.0","eslint":"^4.8.0","eslint-config":"^0.3.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.7.0","eslint-plugin-node":"^5.2.0","eslint-plugin-promise":"^3.5.0","eslint-plugin-standard":"^3.0.1","json-schema-ref-parser":"^3.3.1","json-stringify-safe":"^5.0.1","mocha":"^4.0.1","nyc":"^11.2.1","sinon":"^4.0.1"},"dependencies":{"lodash":"^4.17.4"},"gitHead":"2e9caf58388fc9e4fcf7fd2ec9cb442902cc943b","_id":"json-schema-compare@0.2.2","_npmVersion":"5.0.3","_nodeVersion":"8.5.0","_npmUser":{"name":"mokkabonna","email":"martin@martinhansen.no"},"dist":{"integrity":"sha512-c4WYmDKyJXhs7WWvAWm3uIYnfyWFoIp+JEoX34rctVvEkMYCPGhXtvmFFXiffBbxfZsvQ0RNnV5H7GvDF5HCqQ==","shasum":"dd601508335a90c7f4cfadb6b2e397225c908e56","tarball":"https://registry.npmjs.org/json-schema-compare/-/json-schema-compare-0.2.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICNDMnVkb6pkPZ80Rd2vf+A/ICSNWml5FUoKAAgnacBiAiAFUYSvH77OggE6Mt/IekTnq8pePE7v7VX6qOm37MlgSw=="}]},"maintainers":[{"name":"mokkabonna","email":"martin@martinhansen.no"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-schema-compare-0.2.2.tgz_1508639474689_0.09770061704330146"}}},"readme":"# json-schema-compare [![Build Status](https://travis-ci.org/mokkabonna/json-schema-compare.svg?branch=master)](https://travis-ci.org/mokkabonna/json-schema-compare) [![Coverage Status](https://coveralls.io/repos/github/mokkabonna/json-schema-compare/badge.svg?branch=master)](https://coveralls.io/github/mokkabonna/json-schema-compare?branch=master)\n\n\n> Compare json schemas correctly\n\n```bash\nnpm install json-schema-compare --save\n```\n\n```js\nvar compare = require('json-schema-compare')\n\nvar isEqual = compare({\n  title: 'title 1',\n  type: ['object'],\n  uniqueItems: false,\n  dependencies: {\n    name: ['age', 'lastName']\n  },\n  required: ['name', 'age', 'name']\n}, {\n  title: 'title 2',\n  type: 'object',\n  required: ['age', 'name'],\n  dependencies: {\n    name: ['lastName', 'age']\n  },\n  properties: {\n    name: {\n      minLength: 0\n    }\n  }\n}, {\n  ignore: ['title']\n})\n\nconsole.log(isEqual) // => true\n```\n\nCompare json schemas correctly.\n\n- Ignores sort for arrays where sort does not matter, like required, enum, type, anyOf, oneOf, anyOf, dependencies (if array)\n- Compares correctly type when array or string\n- Ignores duplicate values before comparing\n- For schemas and sub schemas `undefined`, `true` and `{}` are equal\n- For minLength, minItems and minProperties `undefined` and `0` are equal\n- For uniqueItems, `undefined` and `false` are equal\n\n\n## Options\n\n**ignore** array - default: `[]`\n\nIgnores certain keywords, useful to exclude meta keywords like title, description etc or custom keywords. If all you want to know if they are the same in terms of validation keywords.\n\n\n## Contributing\n\nCreate tests for new functionality and follow the eslint rules.\n\n## License\n\nMIT © [Martin Hansen](http://martinhansen.com)\n","maintainers":[{"name":"mokkabonna","email":"martin@martinhansen.no"}],"time":{"modified":"2022-05-06T22:01:48.788Z","created":"2017-10-21T21:04:29.867Z","0.2.0":"2017-10-21T21:04:29.867Z","0.2.1":"2017-10-22T00:04:04.108Z","0.2.2":"2017-10-22T02:31:15.569Z"},"homepage":"https://github.com/mokkabonna/json-schema-compare#readme","keywords":["json","schema","jsonschema","json-schema","comparison"],"repository":{"type":"git","url":"git+https://github.com/mokkabonna/json-schema-compare.git"},"author":{"name":"Martin Hansen"},"bugs":{"url":"https://github.com/mokkabonna/json-schema-compare/issues"},"license":"MIT","readmeFilename":"README.md"}