{"_id":"json-schema-migrate","_rev":"10-a6ee5a7297902128ed566930d85e52bf","name":"json-schema-migrate","description":"Migrate JSON-Schema to draft-06","dist-tags":{"latest":"2.0.0","beta":"1.0.0-beta.0"},"versions":{"0.0.1":{"name":"json-schema-migrate","version":"0.0.1","description":"Migrate JSON-Schema to draft-06","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/json-schema-migrate.git"},"keywords":["JSON-Schema","migrate","draft-06"],"author":{"name":"Evgeny Poberezkin"},"license":"MIT","bugs":{"url":"https://github.com/epoberezkin/json-schema-migrate/issues"},"homepage":"https://github.com/epoberezkin/json-schema-migrate#readme","gitHead":"a3f2e03e3f53b8c3bc24f2a8abf908bcf4f32935","_id":"json-schema-migrate@0.0.1","_shasum":"ada3205f696cfa35f42282614321687aacd17914","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"maintainers":[{"name":"esp","email":"e.poberezkin@me.com"}],"dist":{"shasum":"ada3205f696cfa35f42282614321687aacd17914","tarball":"https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-0.0.1.tgz","integrity":"sha512-3e+x2MGhh+e7umNf3AXtRKnq3m4pqTG4FzW0+BoWkQ7FolXNhbRXZ6KpehmgIOnm3oOsjpyW7eWQYTXRnhdvcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGdncLzcXh0lC0stCBZse6slcsHarGr9WvPXEpW0mPPlAiByVAmCPL1Bzql+ANRRzlp4Twg8+aSXhMzKAVZbeSsf9A=="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/json-schema-migrate-0.0.1.tgz_1490399642524_0.0376271172426641"},"directories":{}},"0.1.0":{"name":"json-schema-migrate","version":"0.1.0","description":"Migrate JSON-Schema to draft-06","main":"lib/index.js","scripts":{"eslint":"eslint lib spec","test-spec":"mocha spec/*.spec.js -R spec","test-debug":"mocha spec/*.spec.js --debug-brk -R spec","test":"nyc npm run test-spec"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/json-schema-migrate.git"},"keywords":["JSON-Schema","migrate","draft-06"],"author":{"name":"Evgeny Poberezkin"},"license":"MIT","bugs":{"url":"https://github.com/epoberezkin/json-schema-migrate/issues"},"homepage":"https://github.com/epoberezkin/json-schema-migrate#readme","dependencies":{"ajv":"^5.0.4-beta.2"},"devDependencies":{"coveralls":"^2.12.0","eslint":"^3.18.0","mocha":"^3.2.0","nyc":"^10.1.2","pre-commit":"^1.2.2"},"nyc":{"exclude":["**/spec/**","node_modules"],"reporter":["lcov","text-summary"]},"gitHead":"fe6a35578389824e18740b19e75a61ed45aeadd0","_id":"json-schema-migrate@0.1.0","_shasum":"812a15d8cdb1e593105ab2ee5bb1173e8e14b5e5","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"maintainers":[{"name":"esp","email":"e.poberezkin@me.com"}],"dist":{"shasum":"812a15d8cdb1e593105ab2ee5bb1173e8e14b5e5","tarball":"https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-0.1.0.tgz","integrity":"sha512-I7SeHhh+RetJxhEe4zrv0cndEnUUU5ncf5FKW1QxOQUgs2jGfjKBYqtADCnLXCOau8FY9JDxO0Bsbhx3PyeNrg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCavR6gWw7EiMAzArnVZrASgVfcAXsoEJ1/Zu+mLRRqJAIhAL35e6Syb6nDNYn+Cmj5iM4Qyui4TKkmtghqIZ5DQ8xI"}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/json-schema-migrate-0.1.0.tgz_1490469342653_0.1418304555118084"},"directories":{}},"0.1.1":{"name":"json-schema-migrate","version":"0.1.1","description":"Migrate JSON-Schema to draft-06","main":"lib/index.js","scripts":{"eslint":"eslint lib spec","test-spec":"mocha spec/*.spec.js -R spec","test-debug":"mocha spec/*.spec.js --debug-brk -R spec","test":"nyc npm run test-spec"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/json-schema-migrate.git"},"keywords":["JSON-Schema","migrate","draft-06"],"author":{"name":"Evgeny Poberezkin"},"license":"MIT","bugs":{"url":"https://github.com/epoberezkin/json-schema-migrate/issues"},"homepage":"https://github.com/epoberezkin/json-schema-migrate#readme","dependencies":{"ajv":"^5.0.4-beta.2"},"devDependencies":{"coveralls":"^2.12.0","eslint":"^3.18.0","mocha":"^3.2.0","nyc":"^10.1.2","pre-commit":"^1.2.2"},"nyc":{"exclude":["**/spec/**","node_modules"],"reporter":["lcov","text-summary"]},"gitHead":"a20d552dcc8dfaf6cf082d90237e5935ab1b8142","_id":"json-schema-migrate@0.1.1","_shasum":"2f790a218beb4bbbd941bb635fca9bd4a32b9e90","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"maintainers":[{"name":"esp","email":"e.poberezkin@me.com"}],"dist":{"shasum":"2f790a218beb4bbbd941bb635fca9bd4a32b9e90","tarball":"https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-0.1.1.tgz","integrity":"sha512-kU/LPJdscgxDUTDurx3l0dAoMJLjjc694G8WwmSLvaiUbg3VfpKPXnGhrPyz2IoCw5B3XSwI9BkQdmN0bc6xfA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoTWlXwk3riAbMt5eS370dYuTVaxvPrcaP9eWEiHJivAIgTSQtyfKt6fgbfIRBkO2Gmk6wGvS/cQEE4ZxXmteDKlI="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/json-schema-migrate-0.1.1.tgz_1490474231432_0.537787537323311"},"directories":{}},"0.2.0":{"name":"json-schema-migrate","version":"0.2.0","description":"Migrate JSON-Schema to draft-06","main":"lib/index.js","scripts":{"eslint":"eslint lib spec","test-spec":"mocha spec/*.spec.js -R spec","test-debug":"mocha spec/*.spec.js --debug-brk -R spec","test":"nyc npm run test-spec"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/json-schema-migrate.git"},"keywords":["JSON-Schema","migrate","draft-06"],"author":{"name":"Evgeny Poberezkin"},"license":"MIT","bugs":{"url":"https://github.com/epoberezkin/json-schema-migrate/issues"},"homepage":"https://github.com/epoberezkin/json-schema-migrate#readme","dependencies":{"ajv":"^5.0.0"},"devDependencies":{"coveralls":"^2.12.0","eslint":"^3.18.0","mocha":"^3.2.0","nyc":"^10.1.2","pre-commit":"^1.2.2"},"nyc":{"exclude":["**/spec/**","node_modules"],"reporter":["lcov","text-summary"]},"gitHead":"46c8cd4c872367ac945503f06aa92f2ce0ce412f","_id":"json-schema-migrate@0.2.0","_shasum":"ba47a5b0072fc72396460e1bd60b44d52178bbc6","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"maintainers":[{"name":"esp","email":"e.poberezkin@me.com"}],"dist":{"shasum":"ba47a5b0072fc72396460e1bd60b44d52178bbc6","tarball":"https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-0.2.0.tgz","integrity":"sha512-dq4/oHWmtw/+0ytnXsDqVn+VsVweTEmzm5jLgguPn9BjSzn6/q58ZiZx3BHiQyJs612f0T5Z+MrUEUUY5DHsRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDBxa+2AKk7ClCGDRvrSunQjVUBmOJkHCd3rktzlva31AiEA+QeOp7D/qLMkDmTNVQNbo4R2Xyx7enJ+E/2Pgm8qSho="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/json-schema-migrate-0.2.0.tgz_1492448973091_0.18974748509936035"},"directories":{}},"1.0.0-beta.0":{"name":"json-schema-migrate","version":"1.0.0-beta.0","description":"Migrate JSON-Schema to draft-06","main":"dist/index.js","scripts":{"build":"rm -rf dist && tsc","eslint":"eslint src spec","prettier:write":"prettier --write \"./**/*.{md,json,yaml,js,ts}\"","prettier:check":"prettier --list-different \"./**/*.{md,json,yaml,js,ts}\"","test-spec":"jest \"spec/*.ts\"","test-cov":"jest \"spec/*.ts\" --coverage","test":"npm run build && npm run eslint && npm run test-cov"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/json-schema-migrate.git"},"keywords":["JSON-Schema","migrate","draft-06"],"author":{"name":"Evgeny Poberezkin"},"license":"MIT","bugs":{"url":"https://github.com/epoberezkin/json-schema-migrate/issues"},"homepage":"https://github.com/epoberezkin/json-schema-migrate#readme","dependencies":{"ajv":"^7.0.0-beta.9"},"devDependencies":{"@ajv-validator/config":"^0.3.0","@types/jest":"^26.0.16","@types/node":"^14.11.10","@typescript-eslint/eslint-plugin":"^4.4.1","@typescript-eslint/parser":"^4.4.1","eslint":"^7.2.0","eslint-config-prettier":"^6.13.0","glob":"^7.1.3","husky":"^4.3.0","jest":"^26.5.3","lint-staged":"^10.5.2","prettier":"^2.2.1","ts-jest":"^26.4.4","typescript":"^4.1.2"},"prettier":"@ajv-validator/config/prettierrc.json","husky":{"hooks":{"pre-commit":"lint-staged && npm test"}},"lint-staged":{"*.{md,json,yaml,js,ts}":"prettier --write"},"readme":"# json-schema-migrate\n\nMigrate JSON-Schema from draft-04 to draft-07 and draft-2019-09\n\n[![build](https://github.com/ajv-validator/json-schema-migrate/workflows/build/badge.svg)](https://github.com/ajv-validator/json-schema-migrate/actions?query=workflow%3Abuild)\n[![npm](https://img.shields.io/npm/v/json-schema-migrate)](https://www.npmjs.com/package/json-schema-migrate)\n[![Coverage Status](https://coveralls.io/repos/github/ajv-validator/json-schema-migrate/badge.svg?branch=master)](https://coveralls.io/github/ajv-validator/json-schema-migrate?branch=master)\n\n## Install\n\n```\nnpm install json-schema-migrate@beta\n```\n\nor to install v0.2 (to migrate to draft-06)\n\n```\nnpm install json-schema-migrate\n```\n\n## Usage\n\n```javascript\nconst migrate = require(\"json-schema-migrate\")\nconst schema = {\n  id: \"my-schema\",\n  minimum: 1,\n  exclusiveMinimum: true,\n}\nconst {valid, errors} = migrate.draft7(schema)\n// or migrate.draft2019(schema)\n\nconsole.log(schema)\n// {\n//  $id: 'my-schema',\n//  exclusiveMinimum: 1\n// }\n```\n\nYou can access Ajv instance that was used to migrate schema using `migrate.getAjv` function:\n\n```javascript\nconsole.log(migrate.getAjv().errorsText(errors))\n```\n\n## Changes in schemas after migration\n\n- `id` is replaced with `$id`\n- `$schema` value becomes draft-07 or draft-2019-09 meta-schema\n- boolean form of `exclusiveMaximum/Minimum` is replaced with numeric form\n- `enum` with a single allowed value is replaced with `const`\n- Non-standard `constant` is replaced with `const`\n- empty schema is replaced with `true`\n- schema `{\"not\":{}}` is replaced with `false`\n- `draft2019` function additionally replaces:\n  - `definitions` with `$defs`\n  - `dependencies` with `dependentRequired` and `dependentSchemas`\n  - `\"id\": \"#foo\"` with `\"$anchor\": \"foo\"`\n  - `\"id\": \"schema#foo\"` with `\"$id\": \"schema\", \"$anchor\": \"foo\"`\n\n## License\n\n[MIT](https://github.com/epoberezkin/json-schema-migrate/blob/master/LICENSE)\n","readmeFilename":"README.md","gitHead":"ca2a18fa989de5075a98437584b029df58efdac4","_id":"json-schema-migrate@1.0.0-beta.0","_nodeVersion":"14.14.0","_npmVersion":"6.14.9","dist":{"integrity":"sha512-LBfvYa/rKAQk7smLrmMjxwN9UkPEEfIRxJusxW0dGXNJ0tAl4EpuE0fF2ENbAfSNjyeQd6twDotvmISw0wAFgg==","shasum":"a1a7e51a36687545454fa134a547eeb3edf81e4f","tarball":"https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-1.0.0-beta.0.tgz","fileCount":18,"unpackedSize":27797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyrOsCRA9TVsSAnZWagAAHvgP+wWHK/i4WteRBneSskvu\n4pa9SakQUF1sugbbHzbWiidWlGRSuIzk9CaEJ1228yDMtuCQcj6q/tAlgiDj\nBZh71otXEhYOXDABl5Ff1l+ZAmVNfuTH+u3/GzfvGXNPBzuBgpzetILBWxBk\nEJ8meD/e0x8k8PeKQKPyp5ShYCbZTM8/iwmz/s07fyhf6UxU2qP/01h5oHKp\nvEcnWU1x0WIAd1eyF2kRlG3+662CXe36QQ/cUd28zVZoikvfGcmemuJhQMiw\noeoKrZfMkfNcWwJ3vNalaZ5B3VkrA6O7F3JP2mGs+2bxO2JaPAyEXFQPb1nN\nexCsP7i5IOC0rSFt747anHEOYStMeYNcgb3MDnUlGQh1xHfWIBmE6B+9Fqm3\nho7lsYYA4dzrNVxcOcPfmp2RaEc4vw8YEcylatu/Ux/03Rjd2AOKovVf6eir\n0QeMY6zjwqlcRSv6yiUvapEOy8QNpDQUjEcRzPWjxkr6JUwF21hTrLA1f+oF\nIFdkwCusCVB960fl/wL6RVicWK4grHmliZQY0EdRISxrvGOVq/3y4UlFU1sI\ncuFahfsSmKkRZaUC3KZJMACwzCvO0wrwd71WJqkJ+ldxEoaFwtGxB3vERO0n\nlNC6W5HQQBFmCYtKT9xRTiqktZGj4EjARtOnXHtWaaH9mjcPojUC7dwrAuMz\ny3SW\r\n=yGnm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvuLEKkOCsyrArXdGfLFYXaf/GOxdDjfsAwsL9VfgzTQIhAPWLR/3JRgmcumxPLu5gSxLWTJmoGhDgX9kRRGTjfBJg"}]},"_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"directories":{},"maintainers":[{"name":"esp","email":"e.poberezkin@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-schema-migrate_1.0.0-beta.0_1607119787942_0.7165686417905359"},"_hasShrinkwrap":false},"1.0.0":{"name":"json-schema-migrate","version":"1.0.0","description":"Migrate JSON-Schema to draft-06","main":"dist/index.js","scripts":{"build":"rm -rf dist && tsc","eslint":"eslint src spec","prettier:write":"prettier --write \"./**/*.{md,json,yaml,js,ts}\"","prettier:check":"prettier --list-different \"./**/*.{md,json,yaml,js,ts}\"","test-spec":"jest \"spec/*.ts\"","test-cov":"jest \"spec/*.ts\" --coverage","test":"npm run build && npm run eslint && npm run test-cov"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/json-schema-migrate.git"},"keywords":["JSON-Schema","migrate","draft-06"],"author":{"name":"Evgeny Poberezkin"},"license":"MIT","bugs":{"url":"https://github.com/epoberezkin/json-schema-migrate/issues"},"homepage":"https://github.com/epoberezkin/json-schema-migrate#readme","dependencies":{"ajv":"^7.0.0-beta.9"},"devDependencies":{"@ajv-validator/config":"^0.3.0","@types/jest":"^26.0.16","@types/node":"^14.11.10","@typescript-eslint/eslint-plugin":"^4.4.1","@typescript-eslint/parser":"^4.4.1","eslint":"^7.2.0","eslint-config-prettier":"^6.13.0","glob":"^7.1.3","husky":"^4.3.0","jest":"^26.5.3","lint-staged":"^10.5.2","prettier":"^2.2.1","ts-jest":"^26.4.4","typescript":"^4.1.2"},"prettier":"@ajv-validator/config/prettierrc.json","husky":{"hooks":{"pre-commit":"lint-staged && npm test"}},"lint-staged":{"*.{md,json,yaml,js,ts}":"prettier --write"},"gitHead":"397726fb142f20fa194bdc1c439d1cc29602e49f","_id":"json-schema-migrate@1.0.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Ze3G4zCBi0ZHKQaK3EEFv7Q0d3/LxZldrH/6rFNNegkGGolMp6Deg6rLWyOaRApPABeZfMyZXbIiAFyRP1bHQA==","shasum":"9169a3f9c0b0c5dfc749d01bb7c76d31ad081599","tarball":"https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-1.0.0.tgz","fileCount":19,"unpackedSize":28227,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1jBUCRA9TVsSAnZWagAAgToQAKBmwga15cmyNmOcuTWL\nAXwYAVUKCNLpWa989TKyN9H8NPs05beEwJm4z5lbCfXcZDPZug6YvBS3vD8N\nczjK1lk9upuMvseIIbAjqmwNZ3UP/RW0WXxN3tbvyineWvTShrAnjhDLKd1L\nF+GOBrn1GENaI/QkOaNSJhMxg3eNQpOOsyIjvL/HxquBooziUW9bSHHW1Kps\nMflCTxBWfgLIm9wK/Rr3TnPoC/G/ITk2nBDk81HRsZHf59Akeu0wbsvoKf0+\nCaqgt6kVqn6CRp7YHWBgndBFVw16WGlv4P77d7JOKTWMdKJZqwyjfDPOIkOa\nldkPE1cCevVsMu2SE4MuUdCL28pRKULOUkbHXifHSPIOtwldLuIUwq4aib3V\nNKh2JCw8FHvxgtHhTMHmrdwDRIP4/7vifbqwvOenx3fVm656C5eV7ffC+Fi2\nYSbHzrdV4lVHref4EQKht7/ztK1CrA7jEdlQj5j4ie9OvdlbTRs9RTXbYCQB\ncpjqpwf61+ihpHrKpSLZmkWWUVudpTyDwtJ64qVHAjYC0TNgY4KvrrdnUOeb\nzW5ZwZ338J0Oo0b/27Rb7Q7TrxAxBpaSWeOmsAksR1KhKdsx2W44fHkro2RW\nK+45sXqoeOiC2Uib62jECnbSP63UsLtTdSuWDxnPY/+pyoMKUf0gnDseV4+B\n4HeM\r\n=1mqC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFpj1x84JoF+OX46RMQFCHlYqpMGFvl1FVHkvM8Noj1wIgMhYNEn7A0Y/TnBa3tQte9eeryMGvPb5tPo42KISid+0="}]},"_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"directories":{},"maintainers":[{"name":"esp","email":"e.poberezkin@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-schema-migrate_1.0.0_1607872595710_0.09229876050521435"},"_hasShrinkwrap":false},"1.1.0":{"name":"json-schema-migrate","version":"1.1.0","description":"Migrate JSON-Schema to draft-06","main":"dist/index.js","scripts":{"build":"rm -rf dist && tsc","eslint":"eslint src spec","prettier:write":"prettier --write \"./**/*.{md,json,yaml,js,ts}\"","prettier:check":"prettier --list-different \"./**/*.{md,json,yaml,js,ts}\"","test-spec":"jest \"spec/*.ts\"","test-cov":"jest \"spec/*.ts\" --coverage","test":"npm run build && npm run eslint && npm run test-cov"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/json-schema-migrate.git"},"keywords":["JSON-Schema","migrate","draft-06"],"author":{"name":"Evgeny Poberezkin"},"license":"MIT","bugs":{"url":"https://github.com/epoberezkin/json-schema-migrate/issues"},"homepage":"https://github.com/epoberezkin/json-schema-migrate#readme","dependencies":{"ajv":"^7.0.0-beta.9"},"devDependencies":{"@ajv-validator/config":"^0.3.0","@types/jest":"^26.0.16","@types/node":"^14.11.10","@typescript-eslint/eslint-plugin":"^4.4.1","@typescript-eslint/parser":"^4.4.1","eslint":"^7.2.0","eslint-config-prettier":"^6.13.0","glob":"^7.1.3","husky":"^4.3.0","jest":"^26.5.3","lint-staged":"^10.5.2","prettier":"^2.2.1","ts-jest":"^26.4.4","typescript":"^4.1.2"},"prettier":"@ajv-validator/config/prettierrc.json","husky":{"hooks":{"pre-commit":"lint-staged && npm test"}},"lint-staged":{"*.{md,json,yaml,js,ts}":"prettier --write"},"gitHead":"9c122263a38f57c0664bb900d8302bb9af051712","_id":"json-schema-migrate@1.1.0","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-PggRuqHB+k1OMz0N1vXCMmwwr8cAsKWVOG5jZh1I2xSyePpRoBG6xOlWG50qe2Ca3hxfWWqZHLEYqJw2/4765g==","shasum":"3e886c38a8efdc9fd3c831d450595c5ab7a36b17","tarball":"https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-1.1.0.tgz","fileCount":19,"unpackedSize":27787,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKscLCRA9TVsSAnZWagAAtg0QAKPM0P8e9n58J2si/b/R\nWyLY6FGP7x/ia7iZSmG84KrdIr46h2HTfqQI5gTLFv8/VuQZTpG5VPTSYwmD\nP+mqBQ8OQKWCoCBsjeZwPl2Kju0hSljUs8oHhuOhWM8cF6wXamtePzd6QXM8\nStFoSohOpRy6PIlTDzDc1256YiX+iW+RWP3rCIzpMOrHfgqSrDSD2vBC6kZe\n2M3xexJwKsrw2/97ZJ90IyQw9TtgcmI6JDCJCZOOXmODLOuImG1UQApSuv6B\nqPLUHhgiorgFIkBw5VjNwyTo/Zwl1vlr1DRN7BqY83jLNV1FTe/AD5pLyWQg\nfZSk+U0Jsm86eIrEMQZfnlH1CKtVjFmAMMxe6ZCWhpriJc+0VRvSYOE4CLff\n7W4GwnEOASYSR7R81tI5LPBRArXkAohGR2NLmRKLnKkrgIqVgf0DxHgo9V3J\nTO+CDgVICvUitwncd06Rn8NXh6CPi6QxWECNCWInke8F0d/6tu+2q/57yIVs\nPEDYDEMT8lCv2URG5wodga9RqVHu+MKhIo/Tcl8clk0NYTQ7YWKurYn/e2oa\nFIbdjBYrRId31SuSZ7sdlEqMPZ/UD7fW80OnhKhUxg+iDBviRuWjiW8DFtdy\nbnpOPc85/lSbla6uzA0uHeCypVZbYTGvFtUK3SVicRfAc3bb2lMsu5SbLij9\nTBBY\r\n=lk07\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9M1IRby/jkPSDP7HiuqTIqIgFju251TCMab2TedFb6wIgOse5bo6bfWtJcbtG/HH5678G/3o/epfsLTYbvRWwDWk="}]},"_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"directories":{},"maintainers":[{"name":"esp","email":"e.poberezkin@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-schema-migrate_1.1.0_1613416202898_0.4362296468802176"},"_hasShrinkwrap":false},"2.0.0":{"name":"json-schema-migrate","version":"2.0.0","description":"Migrate JSON-Schema to draft-06","main":"dist/index.js","scripts":{"build":"rm -rf dist && tsc","eslint":"eslint src spec","prettier:write":"prettier --write \"./**/*.{md,json,yaml,js,ts}\"","prettier:check":"prettier --list-different \"./**/*.{md,json,yaml,js,ts}\"","test-spec":"jest \"spec/*.ts\"","test-cov":"jest \"spec/*.ts\" --coverage","test":"npm run build && npm run eslint && npm run test-cov"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/json-schema-migrate.git"},"keywords":["JSON-Schema","migrate","draft-06"],"author":{"name":"Evgeny Poberezkin"},"license":"MIT","bugs":{"url":"https://github.com/epoberezkin/json-schema-migrate/issues"},"homepage":"https://github.com/epoberezkin/json-schema-migrate#readme","dependencies":{"ajv":"^8.0.0"},"devDependencies":{"@ajv-validator/config":"^0.3.0","@types/jest":"^26.0.16","@types/node":"^14.11.10","@typescript-eslint/eslint-plugin":"^4.4.1","@typescript-eslint/parser":"^4.4.1","eslint":"^7.2.0","eslint-config-prettier":"^6.13.0","glob":"^7.1.3","husky":"^4.3.0","jest":"^26.5.3","lint-staged":"^10.5.2","prettier":"^2.2.1","ts-jest":"^26.4.4","typescript":"^4.1.2"},"prettier":"@ajv-validator/config/prettierrc.json","husky":{"hooks":{"pre-commit":"lint-staged && npm test"}},"lint-staged":{"*.{md,json,yaml,js,ts}":"prettier --write"},"gitHead":"7571107aca90a17235f49ae4bb203b83b8d34522","_id":"json-schema-migrate@2.0.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-r38SVTtojDRp4eD6WsCqiE0eNDt4v1WalBXb9cyZYw9ai5cGtBwzRNWjHzJl38w6TxFkXAIA7h+fyX3tnrAFhQ==","shasum":"335ef5218cd32fcc96c1ddce66c71ba586224496","tarball":"https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-2.0.0.tgz","fileCount":20,"unpackedSize":32570,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYEXYCRA9TVsSAnZWagAA3OUQAJ0PnV/ktDy6zEvUb0Xs\n3fTxTIL9Gy9gCU/rD3KILwpp+12rvh9OxuAsQGTU7XlhKbg8nAPVuVH55QA6\nw7HurQUSdbFRFxzH8u7BquAmHs5epFi4CDH+sjGDq7aiSArmzEG4ZM2gDjd9\nLK/9Ay+82lLzmDa9guk4jghUfaHTnFEaELRMCWG9cO9jAv5kvSMcjDrm5dQS\n+GjeHxXleQBkLow1plT2gl6/XwCHeH6//XPz0taOxzgZSlfgc9WagcIkKo2S\nSQtTegqYD3AfoKog8YRIPQFRJFBdrum4SqhiHQNLDCoQ+7JzkmoENyYa8DbB\nIde+6uS6eQSjlBAKJD+sXtAOaytshu2FxHLEAcy/5B6SxktaPFvTkphzLyGl\nnotKEavLq/+8rxLVh6Vr7ornUbWptt6lSaS6eUxrNNSgRK1d4iw8AEwfLOBX\nNgEthhCGB7m0Tc1RVyQgBjvbyqqr7PvuP7G0OhFD7eGabANBeJiaIx8bcP1X\n6G4+Rqz2O5XtzpA7kwrhVgllU4Kt0KqGIXFaqvo6nlGgjiFrrZKshzDFe7A9\nDycLUwKSeGxU0l41nbm4wwDSh9C9Zg9iuU+/cyt1tihh+sliX4IeefLIIeBo\n4xdTjpBiBk4ZTK4TiEkZ4QAFsBnrwEJQjBgvaFaIFAdu6xYCFc5E10sjAUJ+\nrki1\r\n=O+dL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDX4VVhkJE3gP+utq0U8VrHzkdtbi/N0nxSps6yFBulkAiEAudfVFxCEfGXx3gz2Rhyv94EAhPLBnINs7HkZ4xMV9js="}]},"_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"directories":{},"maintainers":[{"name":"esp","email":"e.poberezkin@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-schema-migrate_2.0.0_1616922071900_0.3915782207032583"},"_hasShrinkwrap":false}},"readme":"# json-schema-migrate\n\nMigrate JSON-Schema from draft-04 to draft-07, draft-2019-09 or draft-2020-12\n\n[![build](https://github.com/ajv-validator/json-schema-migrate/workflows/build/badge.svg)](https://github.com/ajv-validator/json-schema-migrate/actions?query=workflow%3Abuild)\n[![npm](https://img.shields.io/npm/v/json-schema-migrate)](https://www.npmjs.com/package/json-schema-migrate)\n[![coverage](https://coveralls.io/repos/github/ajv-validator/json-schema-migrate/badge.svg?branch=master)](https://coveralls.io/github/ajv-validator/json-schema-migrate?branch=master)\n\n## Install\n\n```\nnpm install json-schema-migrate\n```\n\n## Usage\n\n```javascript\nconst migrate = require(\"json-schema-migrate\")\nconst schema = {\n  id: \"my-schema\",\n  minimum: 1,\n  exclusiveMinimum: true,\n}\nmigrate.draft7(schema)\n// or migrate.draft2019(schema)\n// or migrate.draft2020(schema)\n\nconsole.log(schema)\n// {\n//  $id: 'my-schema',\n//  exclusiveMinimum: 1\n// }\n```\n\nYou can access Ajv instance that is used to migrate schema using `migrate.getAjv` function:\n\n```javascript\nconsole.log(migrate.getAjv().errorsText(errors))\n```\n\n## Changes in schemas after migration\n\n- `id` is replaced with `$id`\n- `$schema` value becomes draft-07, draft-2019-09 or draft-2020-12 meta-schema\n- draft-04 boolean form of `exclusiveMaximum/Minimum` is replaced with the current number form\n- `enum` with a single allowed value is replaced with `const`\n- Non-standard `constant` is replaced with `const`\n- empty schema is replaced with `true`\n- schema `{\"not\":{}}` is replaced with `false`\n- `draft2019` function additionally replaces:\n  - `definitions` with `$defs`\n  - `dependencies` with `dependentRequired` and `dependentSchemas`\n  - `\"id\": \"#foo\"` with `\"$anchor\": \"foo\"`\n  - `\"id\": \"schema#foo\"` with `\"$id\": \"schema\", \"$anchor\": \"foo\"`\n- `draft2020` function additionally replaces array form of `items` with `prefixItems` (and `additionalItems` with `items`)\n\n## License\n\n[MIT](https://github.com/epoberezkin/json-schema-migrate/blob/master/LICENSE)\n","maintainers":[{"name":"esp","email":"e.poberezkin@me.com"}],"time":{"modified":"2022-06-19T06:24:30.825Z","created":"2017-03-24T23:54:03.037Z","0.0.1":"2017-03-24T23:54:03.037Z","0.1.0":"2017-03-25T19:15:43.235Z","0.1.1":"2017-03-25T20:37:13.667Z","0.2.0":"2017-04-17T17:09:33.946Z","1.0.0-beta.0":"2020-12-04T22:09:48.082Z","1.0.0":"2020-12-13T15:16:35.930Z","1.1.0":"2021-02-15T19:10:03.117Z","2.0.0":"2021-03-28T09:01:12.175Z"},"homepage":"https://github.com/epoberezkin/json-schema-migrate#readme","keywords":["JSON-Schema","migrate","draft-06"],"repository":{"type":"git","url":"git+https://github.com/epoberezkin/json-schema-migrate.git"},"author":{"name":"Evgeny Poberezkin"},"bugs":{"url":"https://github.com/epoberezkin/json-schema-migrate/issues"},"license":"MIT","readmeFilename":"README.md"}