{"_id":"@bpmn-io/json-schema-validator","_rev":"25-d162fd42be0915fbf55493b69d935ea9","name":"@bpmn-io/json-schema-validator","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.0":{"name":"@bpmn-io/json-schema-validator","version":"0.1.0","keywords":["json-schema","json-schema-validator","validation"],"author":{"url":"https://github.com/pinussilvestrus","name":"Niklas Kiefer"},"license":"MIT","_id":"@bpmn-io/json-schema-validator@0.1.0","maintainers":[{"name":"alzeghers","email":"alexis.zeghers@hotmail.fr"},{"name":"maxtru","email":"maximilian.trumpf@camunda.com"},{"name":"philippfromme","email":"philippfromme@outlook.com"},{"name":"barmac","email":"maciejbarel@gmail.com"},{"name":"pinussilvestrus","email":"niklaskiefer@gmx.de"},{"name":"nikku","email":"git_nikku@nixis.de"},{"name":"bpmn-io-admin","email":"bpmnio@camunda.com"}],"homepage":"https://github.com/bpmn-io/json-schema-validator#readme","bugs":{"url":"https://github.com/bpmn-io/json-schema-validator/issues"},"dist":{"shasum":"549c5454eea77f4ed58e5e6ef6649f02afa7a182","tarball":"https://registry.npmjs.org/@bpmn-io/json-schema-validator/-/json-schema-validator-0.1.0.tgz","fileCount":6,"integrity":"sha512-gt28hQydJSCe8pZIvPvizObeMrdj/Jdnk3DBnP+V3d6GlkNRNmNRYQszK7lEt6EXVMGEAEP96GmgwV6p/ek+sw==","signatures":[{"sig":"MEQCIH6UsztGmS629bsqCzfNEkbd0EweCNpxm5Xg2JvntRBGAiA3vGNEbpaidIOPQ0xwM3n3s/hwoYdGACs6g/5Kh1PonQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfo+u/CRA9TVsSAnZWagAAKdcP/ApEYexF+iEtxLCgjX2J\n8Dc/RYZ4BDrUv9kXniQJASO4QL5/5+udInYJdXbU48gTy1tTfzyImSMkDS8c\nhvFNU8TdFV4qcfFcalincMHKk2DyYbn+YN5AOVvHbqJQuKtwB5E3zKoMUVya\nsmVcitftW2uDL2NzUCHNqJNxIPXuplhydsnFqXSc4WN/ntUYrNVfNHqJDoR0\nHpDo8W7xyCVzI9yVJNcI87toze3wveRDB91Yl//LXPWUEsxd7ofcedmGX521\nVh27SDUHkrELjdY0fxiivNitNxMpd7Gwgj417da9TV1ZuMOhBRTGKLTbTljv\nRYJJdHvvD9Uu7LMrC/DcAoUjx1wDqXqjZUvSq60zq2g0ac+1maugm5vOQT4F\nmSfm55GSWYzBRF/lU1FqrX4U2xHTGOQyBAiYnEaZEmVqbt8n0lyoYFcSv1M2\nWMFvm8dEpIebU36J3zDj35ps6ZzVUquSGmxWzgsiV7RNfc5W3pR/CZo2VKI6\nxHf69aLjhE0odtMtTCQDOLT7B/UqZ0oEfI+SjqRv+QRJJBHLc/WcE82nDB1v\nTsoR7KT57L7MDkUZe3rvV9xGwRTY5IsL7T4zqvyag4nDrMvYbtQcWSaaKv/O\ndaOARFw6wtANNfbYy7gMF3eZN06wrcZT5atOJACaRsH/8V7arNF2mRZ7dIea\noOAi\r\n=SqX+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","module":"dist/index.esm.js","source":"lib/index.js","gitHead":"fb615b505868deb34e778bebc5ff5886c5204381","scripts":{"all":"run-s lint test distro","lint":"eslint .","test":"nyc --reporter=lcov mocha -r esm --reporter=spec --recursive test/spec","build":"rollup -c","distro":"run-s build test:build","test:build":"mocha --reporter=spec --recursive test/distro","prepublishOnly":"run-s distro"},"_npmUser":{"name":"pinussilvestrus","email":"niklaskiefer@gmx.de"},"repository":{"url":"git+https://github.com/bpmn-io/json-schema-validator.git","type":"git"},"_npmVersion":"6.14.8","description":"Validate JSON based on JSON Schema files","directories":{},"_nodeVersion":"14.14.0","dependencies":{"ajv":"^6.12.5","min-dash":"^3.5.2","ajv-errors":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"esm":"^3.2.25","nyc":"^15.1.0","chai":"^4.2.0","mocha":"^8.1.3","eslint":"^7.9.0","rollup":"^2.28.2","npm-run-all":"^4.1.5","@rollup/plugin-json":"^4.1.0","eslint-plugin-bpmn-io":"^0.11.0","@rollup/plugin-commonjs":"^15.1.0","@rollup/plugin-node-resolve":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/json-schema-validator_0.1.0_1604578238821_0.4687999962524021","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@bpmn-io/json-schema-validator","version":"0.2.0","keywords":["json-schema","json-schema-validator","validation"],"author":{"url":"https://github.com/pinussilvestrus","name":"Niklas Kiefer"},"license":"MIT","_id":"@bpmn-io/json-schema-validator@0.2.0","maintainers":[{"name":"bpmn-io-admin","email":"bpmnio@camunda.com"},{"name":"nikku","email":"git_nikku@nixis.de"},{"name":"pinussilvestrus","email":"niklaskiefer@gmx.de"},{"name":"barmac","email":"maciejbarel@gmail.com"},{"name":"philippfromme","email":"philippfromme@outlook.com"},{"name":"maxtru","email":"maximilian.trumpf@camunda.com"},{"name":"alzeghers","email":"alexis.zeghers@hotmail.fr"}],"homepage":"https://github.com/bpmn-io/json-schema-validator#readme","bugs":{"url":"https://github.com/bpmn-io/json-schema-validator/issues"},"dist":{"shasum":"97098d05377c8675f8169c2c8732dcac829c7de9","tarball":"https://registry.npmjs.org/@bpmn-io/json-schema-validator/-/json-schema-validator-0.2.0.tgz","fileCount":7,"integrity":"sha512-mhml7Nfr10iAdpcnrJau71uFq9MHOmuv7XSsryoSeKmYsGo5KMPKqqt6LFeAcoAh++w2L1APCnOf791EN+WFhw==","signatures":[{"sig":"MEYCIQDH0X0CGE3xDX9sT9g/IZ3FKJNzS4M0hZngkhFb4Ep5QgIhAN/OfrWmaIdnpxQq657KD0yZKOG3k/dNiYGOLRUSwU4E","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11193,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWvXjCRA9TVsSAnZWagAAbFwQAIM1+qkiPr8PEGXRcupg\nkGv0etMZDTVgbFaYKzYomH3fArbJ0Z2AJ28n8bqNrgalzxj7AppY+R2NfgWQ\n9DofZj6TkuW1ZVeNFBTyAWR90kY57pWkQHUdJ3qlKndjj8Vcql4pz43qhIAi\nIqfZSVTO8cXqmVhd/NkdEd0fRwa0SF/fiNhln6/Oyr3uegLDYqOSv3P8POPQ\nqkikfrrwq/eqwSG/DV3swWqwooxR8ZNHeTmMIkuOKNzhhRCW2kNmXdPK6bUl\nf4a4tNSQmipn3goejaU5ZW76psyzjySc5GCdXEgbI7/DvssWtKay816oLxwj\nuUYiYEs608mtq1Vh9DNN5edgTLyGCgYfYmdv6CNu8pCKkZDWyv8Uc795U599\ntvC1+3XgqzUNcfv0HnX/x3dYEp0X05NIQ0IH0MuUIY7vttXcS0wpmJwyJ3id\nCfX99IevyuxCvappZ46e1X4bRbhw95FKBTzGUO/f9QhMXko3yApNE8uk/JIa\nClRcp2nN4Mx4i0cVvt58B1gzfMkvo89rgvuacIASUzTqJD86EiBlbr4f0AkY\nnofoHv4QEbyLFnXpTVi1ZnRuqepW+utP7ynIui3VNJ5iS6IdiJX62+EAZF/j\nYeLiDKbS+bkoFAB6q7RmZhb+ollEM6uZnsSyeLBcq6Plf0/YtB44NoqyNXHF\nL6Q8\r\n=W7EE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","module":"dist/index.esm.js","source":"lib/index.js","gitHead":"b944bdd1c666fb75c96467e54cc2a3fc9021ea28","scripts":{"all":"run-s lint test distro","lint":"eslint .","test":"nyc --reporter=lcov mocha -r esm --reporter=spec --recursive test/spec","build":"rollup -c","distro":"run-s build test:build","test:build":"mocha --reporter=spec --recursive test/distro","prepublishOnly":"run-s distro"},"_npmUser":{"name":"pinussilvestrus","email":"niklaskiefer@gmx.de"},"repository":{"url":"git+https://github.com/bpmn-io/json-schema-validator.git","type":"git"},"_npmVersion":"6.14.11","description":"Validate JSON based on JSON Schema files","directories":{},"_nodeVersion":"14.16.0","dependencies":{"ajv":"^7.2.3","min-dash":"^3.7.0","ajv-errors":"^2.0.1"},"_hasShrinkwrap":false,"devDependencies":{"esm":"^3.2.25","nyc":"^15.1.0","chai":"^4.3.4","mocha":"^8.3.2","eslint":"^7.22.0","rollup":"^2.42.2","npm-run-all":"^4.1.5","@rollup/plugin-json":"^4.1.0","eslint-plugin-bpmn-io":"^0.12.0","@rollup/plugin-commonjs":"^17.1.0","@rollup/plugin-node-resolve":"^11.2.0"},"_npmOperationalInternal":{"tmp":"tmp/json-schema-validator_0.2.0_1616573922828_0.08510093974978217","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"@bpmn-io/json-schema-validator","version":"0.2.1","keywords":["json-schema","json-schema-validator","validation"],"author":{"url":"https://github.com/pinussilvestrus","name":"Niklas Kiefer"},"license":"MIT","_id":"@bpmn-io/json-schema-validator@0.2.1","maintainers":[{"name":"bpmn-io-admin","email":"bpmnio@camunda.com"},{"name":"nikku","email":"git_nikku@nixis.de"},{"name":"pinussilvestrus","email":"niklaskiefer@gmx.de"},{"name":"barmac","email":"maciejbarel@gmail.com"},{"name":"philippfromme","email":"philippfromme@outlook.com"},{"name":"maxtru","email":"maximilian.trumpf@camunda.com"}],"homepage":"https://github.com/bpmn-io/json-schema-validator#readme","bugs":{"url":"https://github.com/bpmn-io/json-schema-validator/issues"},"dist":{"shasum":"a54c6069f1e58fdfa5c33b5309346322ce2eacdf","tarball":"https://registry.npmjs.org/@bpmn-io/json-schema-validator/-/json-schema-validator-0.2.1.tgz","fileCount":7,"integrity":"sha512-Ib9+c3achzfdUIhvxlhhpM1MpmxqGaYge3gAg+CLD/3SwQm2duvIJk3Cj4i4aXSBzCxNLKsXVP2W5RTeOg7tuQ==","signatures":[{"sig":"MEQCIE/g/h0usg1al91X8hddOPiX5luitaihg+RjqmTv4h2EAiAFRcVKgRwUdvL6W90AejklgYUJgdJihlnlpX2JkRpBYQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11349,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgXGZBCRA9TVsSAnZWagAAbZIP/08smBpO0Bjbp1rLiUs5\nfOReNYkwXniZpPTW1BqqdRgUeOXbFSLIAYg2RVhy7U8XKuQMYh8zszgoUtMG\nDnRqJ2kzlRUu7Bzvr7bhdD0697mZAl0K5Y4z6gDk7DCzHX5GAhE0R2a6FRqV\n3KNwRZvAeIbLT8SGVRNM2HtPrUocdQ52P6gAONjy6ROVYOr0mzy7OEOxR+Hm\n5WL2SAzzm8EyPjlRXtt6q7GZ8brwJuhJyKyFSYeN8NB0zGEVRi5wsKiMGX7V\n81fImDFR9UzNjuC/T5nVcQD4b99KqxW6OLgEvu6mCHICOgDq0XVo+ipP53b9\nSIGoEVj/zUTaRKMhVVMPvIcvtMXtoCtYQMptIfBL/XKMUhfWrFamqILpI9Et\nEZKqTvATcCFGRdvMK24fnbeIh03fscC8fuM765Eot+GruBZ1asvPZ4z+Us/W\nrtF7tnv3BftHoZ4f7tsOXlCix00zkY0j8Z/C2co2K/Exi0XGbih8meGwXpS8\nwoxj/Jt6m0E7vTWb4EVNiwMTYxwIOu/rg+8V0jSjehPAIw6q3UHSB2XC5h3q\nQ6UF0K9woYk9VOIGCaC8DvTvnJp/QDpBoZFY21t5PH4jdY9cVAIyKS8mUbop\npoY8OQONAv7tKPbh0ZvPATfUe7DX8ePsL4d91xodtt51egR9mVQp0f5ghqu4\nYH3y\r\n=Dlfx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","module":"dist/index.esm.js","source":"lib/index.js","gitHead":"e4dc51b2ec5c9b363297488f0d900ec3ff3f645d","scripts":{"all":"run-s lint test distro","lint":"eslint .","test":"nyc --reporter=lcov mocha -r esm --reporter=spec --recursive test/spec","build":"rollup -c","distro":"run-s build test:build","test:build":"mocha --reporter=spec --recursive test/distro","prepublishOnly":"run-s distro"},"_npmUser":{"name":"pinussilvestrus","email":"niklaskiefer@gmx.de"},"repository":{"url":"git+https://github.com/bpmn-io/json-schema-validator.git","type":"git"},"_npmVersion":"6.14.11","description":"Validate JSON based on JSON Schema files","directories":{},"_nodeVersion":"14.16.0","dependencies":{"ajv":"^6.12.6","min-dash":"^3.7.0","ajv-errors":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"esm":"^3.2.25","nyc":"^15.1.0","chai":"^4.3.4","mocha":"^8.3.2","eslint":"^7.22.0","rollup":"^2.42.2","npm-run-all":"^4.1.5","@rollup/plugin-json":"^4.1.0","eslint-plugin-bpmn-io":"^0.12.0","@rollup/plugin-commonjs":"^17.1.0","@rollup/plugin-node-resolve":"^11.2.0"},"_npmOperationalInternal":{"tmp":"tmp/json-schema-validator_0.2.1_1616668224937_0.17793992843267925","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-11-05T12:10:38.583Z","modified":"2026-07-08T15:54:12.006Z","0.1.0":"2020-11-05T12:10:38.972Z","0.2.0":"2021-03-24T08:18:43.021Z","0.2.1":"2021-03-25T10:30:25.081Z"},"bugs":{"url":"https://github.com/bpmn-io/json-schema-validator/issues"},"author":{"url":"https://github.com/pinussilvestrus","name":"Niklas Kiefer"},"license":"MIT","homepage":"https://github.com/bpmn-io/json-schema-validator#readme","keywords":["json-schema","json-schema-validator","validation"],"repository":{"url":"git+https://github.com/bpmn-io/json-schema-validator.git","type":"git"},"description":"Validate JSON based on JSON Schema files","maintainers":[{"email":"bpmnio@camunda.com","name":"bpmn-io-admin"},{"email":"git_nikku@nixis.de","name":"nikku"},{"email":"maciejbarel@gmail.com","name":"barmac"},{"email":"philippfromme@outlook.com","name":"philippfromme"},{"email":"maximilian.trumpf@camunda.com","name":"maxtru"},{"email":"valentin.serra@camunda.com","name":"skaiir-camunda"},{"email":"vinicius@vsgoulart.com","name":"vsgoulart"},{"email":"ali.barin53@gmail.com","name":"barinali"},{"email":"ev.bilske@camunda.com","name":"ev-camunda"},{"email":"jarek.danielak@camunda.com","name":"jarekdanielak"},{"email":"alekseyManetov@gmail.com","name":"alekseymanetov"}],"readme":"# json-schema-validator\n\n[![CI](https://github.com/bpmn-io/json-schema-validator/workflows/CI/badge.svg)](https://github.com/bpmn-io/json-schema-validator/actions?query=workflow%3ACI)\n\nValidate JSON based on [JSON Schema](https://json-schema.org/) files.\n\n## Installation\n\n```sh\n$ npm i --save @bpmn-io/json-schema-validator\n```\n\n## Usage\n\nGiven\n* an [example JSON schema](./test/fixtures/json-schema/schema.json)\n* an [example JSON object](./test/fixtures/samples/invalid-name.json)\n\n```js\nimport { Validator } from '@bpmn-io/json-schema-validator';\n\nimport schema from './test/fixtures/json-schema/schema.json';\n\nimport sample from './test/fixtures/samples/invalid-name.json';\n\nconst validator = new Validator({\n  schema: schema\n});\n\nconst {\n  valid,\n  errors\n} = validator.validate(sample);\n\nif (!valid) {\n  console.error('Invalid JSON detected:', errors);\n}\n\n```\n\nThis will print detailed information about errors inside the sample\n\n```json\n[\n  {\n    \"message\": \"must start with <number_>\",\n    \"keyword\": \"errorMessage\",\n    \"dataPath\": \"/properties/0/name\",\n    \"schemaPath\": \"#/properties/properties/items/allOf/0/then/properties/name/errorMessage\",\n    \"params\": {\n      \"rawErrors\": [\n        {\n          \"keyword\": \"pattern\",\n          \"dataPath\": \"/properties/0/name\",\n          \"schemaPath\": \"#/properties/properties/items/allOf/0/then/properties/name/pattern\",\n          \"params\": {\n            \"pattern\": \"^(number_)\"\n          },\n          \"message\": \"should match pattern \\\"^(number_)\\\"\"\n        }\n      ]\n    }\n  }\n]\n```\n\n\nIt's also possible to validate multiple objects at once\n\n```js\nimport Validator from '@bpmn-io/json-schema-validator';\n\nimport schema from './test/fixtures/json-schema/schema.json';\n\nimport samples from './test/fixtures/samples/multiple-samples.json';\n\nconst validator = new Validator({\n  schema: schema\n});\n\nconst {\n  valid,\n  results\n} = validator.validateAll(samples);\n\nif (!valid) {\n  console.error('Invalid JSON objects detected:', results.filter(r => !r.valid));\n}\n\n```\n\n## Example JSON Schemas\n\n* [@camunda/element-templates-json-schema](https://github.com/camunda/element-templates-json-schema)\n\n## License\n\nMIT\n\n","readmeFilename":"README.md"}