{"_id":"@jirutka/ajv-cli","_rev":"6-92c06e530fbe5866aa6b9ff1611aa172","name":"@jirutka/ajv-cli","dist-tags":{"latest":"6.0.0"},"versions":{"6.0.0-beta.0":{"name":"@jirutka/ajv-cli","version":"6.0.0-beta.0","author":{"name":"Jakub Jirutka","email":"jakub@jirutka.cz"},"license":"MIT","_id":"@jirutka/ajv-cli@6.0.0-beta.0","maintainers":[{"name":"jirutka","email":"jakub@jirutka.cz"}],"homepage":"https://github.com/jirutka/ajv-cli#readme","bugs":{"url":"https://github.com/jirutka/ajv-cli/issues"},"bin":{"ajv":"dist/index.js"},"nyc":{"cache":true,"exclude":["test","node_modules"],"reporter":["lcov","text-summary"]},"dist":{"shasum":"05b2189dbae04455800b9aa508f2c8d89ed63169","tarball":"https://registry.npmjs.org/@jirutka/ajv-cli/-/ajv-cli-6.0.0-beta.0.tgz","fileCount":67,"integrity":"sha512-QAzdcCJCpwULXaKz18gqIkRIW7YQ+vkZlCcazfj/QxfQ8JIuQKfRXovY4mjeSvngSQPTFrA46TD+0CY5LgR8TA==","signatures":[{"sig":"MEUCIQDOAuCio0YQIvY1dFcfC0nUjBglsJlxrbtK/6jiMrS7OgIgOlB9FekPcRki88BMXKKV7Tsb9uRQv+8QCU2dBXrkHhc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":136316},"type":"module","gitHead":"911bf5e7a2e4f32c8a07b193f5ba921409edb537","scripts":{"lint":"eslint \"src/**/*.ts\" \"test/**/*.[jt]s\"","test":"npm run build && npm run test-cov","build":"rm -rf dist && tsc","format":"prettier --write \"./**/*.{js,json,ts,yaml}\"","test-cov":"c8 npm run test-only","test-only":"TS_NODE_PROJECT=test/tsconfig.json mocha","typecheck":"tsc --noEmit","stylecheck":"prettier --check \"./**/*.{js,json,ts,yaml}\"","prepublishOnly":"npm run build && asciidoctor -b docbook -a npm-readme -o - README.adoc | pandoc -f docbook -t gfm --shift-heading-level-by 1 --wrap preserve -o README.md"},"_npmUser":{"name":"jirutka","email":"jakub@jirutka.cz"},"repository":{"url":"git+https://github.com/jirutka/ajv-cli.git","type":"git"},"_npmVersion":"10.7.0","description":"Command line interface for Ajv JSON schema validator","directories":{},"_nodeVersion":"20.14.0","dependencies":{"ajv":"^8.0.0","yaml":"^2.4.5","chalk":"^5.3.0","minimist":"^1.2.0","picomatch":"^4.0.2","fast-json-patch":"^3.1.0","damerau-levenshtein":"^1.0.8","@humanwhocodes/momoa":"^3.0.2","@json-schema-tools/traverse":"^1.10.4"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^9.1.0","mocha":"^10.4.0","eslint":"^8.57.0","ts-node":"^10.9.0","prettier":"^3.3.0","typescript":"^5.4.5","@types/node":"^20.14.0","@types/json5":"^2.2.0","@types/mocha":"^10.0.0","ajv-keywords":"^5.0.0","utility-types":"^3.11.0","@types/minimist":"^1.2.1","@types/picomatch":"^2.3.3","@types/json-schema":"^7.0.15","eslint-config-prettier":"^9.1.0","@typescript-eslint/parser":"^7.12.0","@types/damerau-levenshtein":"^1.0.2","@typescript-eslint/eslint-plugin":"^7.12.0"},"_npmOperationalInternal":{"tmp":"tmp/ajv-cli_6.0.0-beta.0_1718491839040_0.05872865972384189","host":"s3://npm-registry-packages"}},"6.0.0-beta.1":{"name":"@jirutka/ajv-cli","version":"6.0.0-beta.1","keywords":["ajv","cli","json-schema-validator","json-schema","validator","yaml-schema"],"author":{"name":"Jakub Jirutka","email":"jakub@jirutka.cz"},"license":"MIT","_id":"@jirutka/ajv-cli@6.0.0-beta.1","maintainers":[{"name":"jirutka","email":"jakub@jirutka.cz"}],"homepage":"https://github.com/jirutka/ajv-cli","bugs":{"url":"https://github.com/jirutka/ajv-cli/issues"},"bin":{"ajv":"dist/main.js"},"nyc":{"cache":true,"exclude":["test","node_modules"],"reporter":["lcov","text-summary"]},"dist":{"shasum":"501a6be28edb13f2885d908156009bb33f40b85f","tarball":"https://registry.npmjs.org/@jirutka/ajv-cli/-/ajv-cli-6.0.0-beta.1.tgz","fileCount":70,"integrity":"sha512-AnBqYgW6MQtGQMnabWltH696bCgTPuAUfXrFy6ybLYfKa3hUMLLLrKDWQO2VHcjlizxDJkLDUi7HCMaTKTKvWw==","signatures":[{"sig":"MEUCIQC05WYvdBCLbASnuSE8osdlkFnKZ2D2a6jucE8QlQsQ8AIgX8G/SjukgRbpH1XOEufio2Zl7gCzwoFTNgkOrpY96ac=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":177675},"type":"module","gitHead":"560b9591b729ee516cede7658cc6667918ce204c","scripts":{"lint":"eslint \"src/**/*.ts\" \"test/**/*.[jt]s\"","test":"npm run build && npm run test-cov","build":"rm -rf dist && tsc","format":"prettier --write \"./**/*.{js,json,ts,yaml}\"","test-cov":"c8 npm run test-only","test-only":"TS_NODE_PROJECT=test/tsconfig.json mocha","typecheck":"tsc --noEmit","stylecheck":"prettier --check \"./**/*.{js,json,ts,yaml}\"","prepublishOnly":"npm run build && asciidoctor -b docbook -a npm-readme -o - README.adoc | pandoc -f docbook -t gfm --shift-heading-level-by 1 --wrap preserve -o README.md"},"_npmUser":{"name":"jirutka","email":"jakub@jirutka.cz"},"repository":{"url":"git+https://github.com/jirutka/ajv-cli.git","type":"git"},"_npmVersion":"10.7.0","description":"CLI for Ajv JSON Schema Validator with human-friendly error messages","directories":{},"_nodeVersion":"20.14.0","dependencies":{"ajv":"^8.13.0","yaml":"^2.4.5","chalk":"^5.3.0","picomatch":"^4.0.2","type-flag":"^3.0.0","fast-json-patch":"^3.1.0","damerau-levenshtein":"^1.0.8","@humanwhocodes/momoa":"^3.0.2","@json-schema-tools/traverse":"^1.10.4"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^9.1.0","mocha":"^10.4.0","eslint":"^8.57.0","ts-node":"^10.9.0","prettier":"^3.3.0","typescript":"^5.4.5","@types/node":"^20.14.0","@types/json5":"^2.2.0","@types/mocha":"^10.0.0","ajv-keywords":"^5.0.0","utility-types":"^3.11.0","@types/picomatch":"^2.3.3","@types/json-schema":"^7.0.15","eslint-config-prettier":"^9.1.0","@typescript-eslint/parser":"^7.12.0","@types/damerau-levenshtein":"^1.0.2","@typescript-eslint/eslint-plugin":"^7.12.0"},"_npmOperationalInternal":{"tmp":"tmp/ajv-cli_6.0.0-beta.1_1718720345099_0.4322562401870891","host":"s3://npm-registry-packages"}},"6.0.0-beta.2":{"name":"@jirutka/ajv-cli","version":"6.0.0-beta.2","keywords":["ajv","cli","json-schema-validator","json-schema","validator","yaml-schema"],"author":{"name":"Jakub Jirutka","email":"jakub@jirutka.cz"},"license":"MIT","_id":"@jirutka/ajv-cli@6.0.0-beta.2","maintainers":[{"name":"jirutka","email":"jakub@jirutka.cz"}],"homepage":"https://github.com/jirutka/ajv-cli","bugs":{"url":"https://github.com/jirutka/ajv-cli/issues"},"bin":{"ajv":"dist/main.js"},"nyc":{"cache":true,"exclude":["test","node_modules"],"reporter":["lcov","text-summary"]},"dist":{"shasum":"e29d75c52113b9e94d2f2c3a6c4672263854cbc1","tarball":"https://registry.npmjs.org/@jirutka/ajv-cli/-/ajv-cli-6.0.0-beta.2.tgz","fileCount":70,"integrity":"sha512-n9eTVTOUmwX03ArJeA2O9B8qFx3Knu9sQOTUcyWYsn9LnvLLBM6+Ii7oM7cH/iT4K7+O7zSFfgBAa+Zf9lfreQ==","signatures":[{"sig":"MEQCIBFllTENiscQ9jOsOdCLWZsOh2NOfnTTq8Yvz/n3yqYuAiA4wNQKx9ovE8xmlx3ku2OdMFKdtu2O3LwjiudQoJqaVw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":178497},"type":"module","gitHead":"5438d7b010191fec9086f591254a80e7aca742e7","scripts":{"lint":"eslint \"src/**/*.ts\" \"test/**/*.[jt]s\"","test":"npm run build && npm run test-cov","build":"rm -rf dist && tsc","format":"prettier --write \"./**/*.{js,json,ts,yaml}\"","test-cov":"c8 npm run test-only","test-only":"TS_NODE_PROJECT=test/tsconfig.json mocha","typecheck":"tsc --noEmit","stylecheck":"prettier --check \"./**/*.{js,json,ts,yaml}\"","prepublishOnly":"npm run build && asciidoctor -b docbook -a npm-readme -o - README.adoc | pandoc -f docbook -t gfm --shift-heading-level-by 1 --wrap preserve -o README.md"},"_npmUser":{"name":"jirutka","email":"jakub@jirutka.cz"},"repository":{"url":"git+https://github.com/jirutka/ajv-cli.git","type":"git"},"_npmVersion":"10.7.0","description":"CLI for Ajv JSON Schema Validator with human-friendly error messages","directories":{},"_nodeVersion":"20.14.0","dependencies":{"ajv":"^8.13.0","yaml":"^2.4.5","chalk":"^5.3.0","picomatch":"^4.0.2","type-flag":"^3.0.0","fast-json-patch":"^3.1.0","damerau-levenshtein":"^1.0.8","@humanwhocodes/momoa":"^3.0.2","@json-schema-tools/traverse":"^1.10.4"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^9.1.0","mocha":"^10.4.0","eslint":"^8.57.0","ts-node":"^10.9.0","prettier":"^3.3.0","typescript":"^5.4.5","@types/node":"^20.14.0","@types/json5":"^2.2.0","@types/mocha":"^10.0.0","ajv-keywords":"^5.0.0","utility-types":"^3.11.0","@types/picomatch":"^2.3.3","@types/json-schema":"^7.0.15","eslint-config-prettier":"^9.1.0","@typescript-eslint/parser":"^7.12.0","@types/damerau-levenshtein":"^1.0.2","@typescript-eslint/eslint-plugin":"^7.12.0"},"_npmOperationalInternal":{"tmp":"tmp/ajv-cli_6.0.0-beta.2_1718891243668_0.24940895885380154","host":"s3://npm-registry-packages"}},"6.0.0-beta.3":{"name":"@jirutka/ajv-cli","version":"6.0.0-beta.3","keywords":["ajv","cli","json-schema-validator","json-schema","validator","yaml-schema"],"author":{"name":"Jakub Jirutka","email":"jakub@jirutka.cz"},"license":"MIT","_id":"@jirutka/ajv-cli@6.0.0-beta.3","homepage":"https://github.com/jirutka/ajv-cli","bugs":{"url":"https://github.com/jirutka/ajv-cli/issues"},"bin":{"ajv":"lib/main.js"},"nyc":{"cache":true,"exclude":["test","node_modules"],"reporter":["lcov","text-summary"]},"dist":{"shasum":"ac95aacd9bf2d625908582addc7943c7f898438d","tarball":"https://registry.npmjs.org/@jirutka/ajv-cli/-/ajv-cli-6.0.0-beta.3.tgz","fileCount":73,"integrity":"sha512-6x5hw9hxMh3CKYa0+lbd/cjXPR+33hf6pGQbM/NqnEKuqJgeJrCSPVAWrvbq90zBVXtXs4WTX5nbPVFgeegFYw==","signatures":[{"sig":"MEUCIQDwem3rqfZ+LJo7o+WKw87G2HkWNQkcY72YpyOGpEcFvAIgc2MBcZQlBjvLisgDuhAm5psmAPL2lNnu7WCLbagQk7w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":199786},"type":"module","gitHead":"35806419d978fa57548571d883ddebc1572a60b3","scripts":{"lint":"eslint \"src/**/*.ts\" \"test/**/*.[jt]s\"","test":"npm run build && npm run test-cov","build":"rm -rf lib && tsc","bundle":"rollup -c","format":"prettier --write \"./**/*.{js,json,ts,yaml}\"","test-cov":"c8 npm run test-only","test-only":"TS_NODE_PROJECT=test/tsconfig.json mocha","typecheck":"tsc --noEmit","stylecheck":"prettier --check \"./**/*.{js,json,ts,yaml}\"","prepublishOnly":"npm run build && asciidoctor -b docbook -a npm-readme -o - README.adoc | pandoc -f docbook -t gfm --shift-heading-level-by 1 --wrap preserve -o README.md"},"_npmUser":{"name":"jirutka","email":"jakub@jirutka.cz"},"repository":{"url":"git+https://github.com/jirutka/ajv-cli.git","type":"git"},"_npmVersion":"10.7.0","description":"CLI for Ajv JSON Schema Validator with human-friendly error messages","directories":{},"_nodeVersion":"20.14.0","dependencies":{"ajv":"^8.13.0","yaml":"^2.4.5","chalk":"^5.3.0","picomatch":"^4.0.2","type-flag":"^3.0.0","fast-json-patch":"^3.1.0","damerau-levenshtein":"^1.0.8","@humanwhocodes/momoa":"^3.0.2","@json-schema-tools/traverse":"^1.10.4"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^9.1.0","mocha":"^10.4.0","tslib":"^2.6.3","eslint":"^8.57.0","ts-node":"^10.9.0","prettier":"^3.3.0","typescript":"^5.4.5","@types/node":"^20.14.0","@types/json5":"^2.2.0","@types/mocha":"^10.0.0","ajv-keywords":"^5.0.0","utility-types":"^3.11.0","@types/picomatch":"^2.3.3","@rollup/wasm-node":"^4.17.2","@types/json-schema":"^7.0.15","@rollup/plugin-json":"^6.1.0","rollup-plugin-cleanup":"^3.2.1","rollup-plugin-license":"^3.4.0","eslint-config-prettier":"^9.1.0","@rollup/plugin-commonjs":"^26.0.1","@rollup/plugin-typescript":"^11.1.6","@typescript-eslint/parser":"^7.12.0","@types/damerau-levenshtein":"^1.0.2","@rollup/plugin-node-resolve":"^15.2.3","@typescript-eslint/eslint-plugin":"^7.12.0"},"_npmOperationalInternal":{"tmp":"tmp/ajv-cli_6.0.0-beta.3_1719250479516_0.6906417389025239","host":"s3://npm-registry-packages"}},"6.0.0-beta.4":{"name":"@jirutka/ajv-cli","version":"6.0.0-beta.4","keywords":["ajv","cli","json-schema-validator","json-schema","validator","yaml-schema"],"author":{"name":"Jakub Jirutka","email":"jakub@jirutka.cz"},"license":"MIT","_id":"@jirutka/ajv-cli@6.0.0-beta.4","homepage":"https://github.com/jirutka/ajv-cli","bugs":{"url":"https://github.com/jirutka/ajv-cli/issues"},"bin":{"ajv":"lib/main.js"},"nyc":{"cache":true,"exclude":["test","node_modules"],"reporter":["lcov","text-summary"]},"dist":{"shasum":"8e8fc14c1e96604e0af338ba94e9dc87e289bc31","tarball":"https://registry.npmjs.org/@jirutka/ajv-cli/-/ajv-cli-6.0.0-beta.4.tgz","fileCount":73,"integrity":"sha512-1w+qsCzGQybTsasxmuqNLY/SX9QT1tRywcNW6o9e5m3rq/OXPov2hsJcX0Oy0k/uXfeAw4IZWGSKwRAkMoMrAA==","signatures":[{"sig":"MEUCIFUk9S4zkj0hOdFQJn+qebFW3+Ka6gFSlWu3JkOM6l+cAiEAiAYWdkjbw+Qw+PvYDj2EYbJG/IMYFzcxmLyaOT0aaBo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":200478},"type":"module","gitHead":"331a7b2068b68eb749c09c452cff15b8dfc00099","scripts":{"lint":"eslint \"src/**/*.ts\" \"test/**/*.[jt]s\"","test":"npm run build && npm run test-cov","build":"rm -rf lib && tsc","bundle":"rollup -c","format":"prettier --write \"./**/*.{js,json,ts,yaml}\"","test-cov":"c8 npm run test-only","test-only":"TS_NODE_PROJECT=test/tsconfig.json mocha","typecheck":"tsc --noEmit","stylecheck":"prettier --check \"./**/*.{js,json,ts,yaml}\"","prepublishOnly":"npm run build && asciidoctor -b docbook -a npm-readme -o - README.adoc | pandoc -f docbook -t gfm --shift-heading-level-by 1 --wrap preserve -o README.md"},"_npmUser":{"name":"jirutka","email":"jakub@jirutka.cz"},"repository":{"url":"git+https://github.com/jirutka/ajv-cli.git","type":"git"},"_npmVersion":"10.7.0","description":"CLI for Ajv JSON Schema Validator with human-friendly error messages","directories":{},"_nodeVersion":"20.14.0","dependencies":{"ajv":"^8.13.0","yaml":"^2.4.5","chalk":"^5.3.0","picomatch":"^4.0.2","type-flag":"^3.0.0","fast-json-patch":"^3.1.0","damerau-levenshtein":"^1.0.8","@humanwhocodes/momoa":"^3.0.2","@json-schema-tools/traverse":"^1.10.4"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^9.1.0","mocha":"^10.4.0","tslib":"^2.6.3","eslint":"^8.57.0","ts-node":"^10.9.0","prettier":"^3.3.0","typescript":"^5.4.5","@types/node":"^20.14.0","@types/json5":"^2.2.0","@types/mocha":"^10.0.0","ajv-keywords":"^5.0.0","utility-types":"^3.11.0","@types/picomatch":"^2.3.3","@rollup/wasm-node":"^4.17.2","@types/json-schema":"^7.0.15","@rollup/plugin-json":"^6.1.0","rollup-plugin-cleanup":"^3.2.1","rollup-plugin-license":"^3.4.0","eslint-config-prettier":"^9.1.0","@rollup/plugin-commonjs":"^26.0.1","@rollup/plugin-typescript":"^11.1.6","@typescript-eslint/parser":"^7.12.0","@types/damerau-levenshtein":"^1.0.2","@rollup/plugin-node-resolve":"^15.2.3","@typescript-eslint/eslint-plugin":"^7.12.0"},"_npmOperationalInternal":{"tmp":"tmp/ajv-cli_6.0.0-beta.4_1719324073116_0.8477882487654862","host":"s3://npm-registry-packages"}},"6.0.0-beta.5":{"name":"@jirutka/ajv-cli","version":"6.0.0-beta.5","keywords":["ajv","cli","json-schema-validator","json-schema","validator","yaml-schema"],"author":{"name":"Jakub Jirutka","email":"jakub@jirutka.cz"},"license":"MIT","_id":"@jirutka/ajv-cli@6.0.0-beta.5","maintainers":[{"name":"jirutka","email":"jakub@jirutka.cz"}],"homepage":"https://github.com/jirutka/ajv-cli","bugs":{"url":"https://github.com/jirutka/ajv-cli/issues"},"bin":{"ajv":"lib/main.js"},"nyc":{"cache":true,"exclude":["test","node_modules"],"reporter":["lcov","text-summary"]},"dist":{"shasum":"68c140cb20d8ed8a25229175dd3e24e3a2394fdf","tarball":"https://registry.npmjs.org/@jirutka/ajv-cli/-/ajv-cli-6.0.0-beta.5.tgz","fileCount":73,"integrity":"sha512-fTlaz04+rmbs1ufREmlmc3GO16Ve+6S5AnU/JteFiMJx1VAde8/y3JczoKgs9SQDgk5OkWG1+TCxhBhpakTF4A==","signatures":[{"sig":"MEYCIQDuY7BwkNFH9sqLHqR7loODNM3I//c/AyNa0HcjQdqpwgIhAKpnp/Y5GYTICXkuzBQfAh0G/IktJYMC9VYGHZQ+mUcL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":202514},"type":"module","gitHead":"f708fb14af75aed5451531b2ea4b3e5deab479e9","scripts":{"lint":"eslint \"src/**/*.ts\" \"test/**/*.[jt]s\"","test":"npm run build && npm run test-cov","build":"rm -rf lib && tsc","bundle":"rollup -c","format":"prettier --write \"./**/*.{js,json,ts,yaml}\"","test-cov":"c8 npm run test-only","test-only":"TS_NODE_PROJECT=test/tsconfig.json mocha","typecheck":"tsc --noEmit","stylecheck":"prettier --check \"./**/*.{js,json,ts,yaml}\"","prepublishOnly":"npm run build && asciidoctor -b docbook -a npm-readme -o - README.adoc | pandoc -f docbook -t gfm --shift-heading-level-by 1 --wrap preserve -o README.md"},"_npmUser":{"name":"jirutka","email":"jakub@jirutka.cz"},"repository":{"url":"git+https://github.com/jirutka/ajv-cli.git","type":"git"},"_npmVersion":"10.7.0","description":"CLI for Ajv JSON Schema Validator with human-friendly error messages","directories":{},"_nodeVersion":"20.15.1","dependencies":{"ajv":"^8.13.0","yaml":"^2.4.5","chalk":"^5.3.0","picomatch":"^4.0.2","type-flag":"^3.0.0","fast-json-patch":"^3.1.0","damerau-levenshtein":"^1.0.8","@humanwhocodes/momoa":"^3.0.2","@json-schema-tools/traverse":"^1.10.4"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^9.1.0","mocha":"^10.4.0","tslib":"^2.6.3","eslint":"^8.57.0","ts-node":"^10.9.0","prettier":"^3.3.0","typescript":"^5.4.5","@types/node":"^20.14.0","@types/json5":"^2.2.0","@types/mocha":"^10.0.0","ajv-keywords":"^5.0.0","utility-types":"^3.11.0","@types/picomatch":"^2.3.3","@rollup/wasm-node":"^4.17.2","@types/json-schema":"^7.0.15","@rollup/plugin-json":"^6.1.0","rollup-plugin-cleanup":"^3.2.1","rollup-plugin-license":"^3.4.0","eslint-config-prettier":"^9.1.0","@rollup/plugin-commonjs":"^26.0.1","@rollup/plugin-typescript":"^11.1.6","@typescript-eslint/parser":"^7.12.0","@types/damerau-levenshtein":"^1.0.2","@rollup/plugin-node-resolve":"^15.2.3","@typescript-eslint/eslint-plugin":"^7.12.0"},"_npmOperationalInternal":{"tmp":"tmp/ajv-cli_6.0.0-beta.5_1722283893852_0.6402686294184172","host":"s3://npm-registry-packages"}},"6.0.0":{"name":"@jirutka/ajv-cli","version":"6.0.0","description":"CLI for Ajv JSON Schema Validator with human-friendly error messages","author":{"name":"Jakub Jirutka","email":"jakub@jirutka.cz"},"license":"MIT","homepage":"https://github.com/jirutka/ajv-cli","repository":{"type":"git","url":"git+https://github.com/jirutka/ajv-cli.git"},"keywords":["ajv","cli","json-schema-validator","json-schema","validator","yaml-schema"],"type":"module","bin":{"ajv":"lib/main.js"},"scripts":{"build":"rm -rf lib && tsc","bundle":"rollup -c","format":"prettier --write \"./**/*.{js,json,ts,yaml}\"","lint":"eslint \"src/**/*.ts\" \"test/**/*.[jt]s\"","prepublishOnly":"npm run build && npm run readme","readme":"asciidoctor -b docbook -a npm-readme -o - README.adoc | pandoc -f docbook -t gfm --shift-heading-level-by 1 --wrap preserve -o README.md","stylecheck":"prettier --check \"./**/*.{js,json,ts,yaml}\"","test-cov":"c8 npm run test-only","test-only":"TS_NODE_PROJECT=test/tsconfig.json mocha","test":"npm run build && npm run test-cov","typecheck":"tsc --noEmit"},"dependencies":{"@humanwhocodes/momoa":"^3.0.2","@json-schema-tools/traverse":"^1.10.4","ajv":"^8.13.0","chalk":"^5.3.0","damerau-levenshtein":"^1.0.8","fast-json-patch":"^3.1.0","picomatch":"^4.0.2","type-flag":"^3.0.0","yaml":"^2.4.5"},"devDependencies":{"@rollup/plugin-commonjs":"^26.0.1","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^15.2.3","@rollup/plugin-typescript":"^11.1.6","@rollup/wasm-node":"^4.17.2","@types/damerau-levenshtein":"^1.0.2","@types/json-schema":"^7.0.15","@types/json5":"^2.2.0","@types/mocha":"^10.0.0","@types/node":"^20.14.0","@types/picomatch":"^3.0.0","@typescript-eslint/eslint-plugin":"^8.24.0","@typescript-eslint/parser":"^8.24.0","ajv-keywords":"^5.0.0","c8":"^10.1.0","eslint":"^8.57.0","eslint-config-prettier":"^10.0.0","mocha":"^11.1.0","prettier":"^3.3.0","rollup-plugin-cleanup":"^3.2.1","rollup-plugin-license":"^3.4.0","ts-node":"^10.9.0","tslib":"^2.6.3","typescript":"^5.4.5","utility-types":"^3.11.0"},"nyc":{"exclude":["test","node_modules"],"reporter":["lcov","text-summary"],"cache":true},"_id":"@jirutka/ajv-cli@6.0.0","gitHead":"76daef423d3181a3c1705bf4dc7c06c72e00d94b","bugs":{"url":"https://github.com/jirutka/ajv-cli/issues"},"_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-qQbBwIUltRLJow/E+H/ipga0pc4qcY31PDNM1RhkS+dn/hFDS+HuuEKEBBmACRj+uV8N07+ybskSgKBDujkmeg==","shasum":"d9acc5176606edbbf3de008219220520acf5ee4f","tarball":"https://registry.npmjs.org/@jirutka/ajv-cli/-/ajv-cli-6.0.0.tgz","fileCount":73,"unpackedSize":202435,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC0CdKDEmsku/ao5ipOvTMP8jyS7Cv5rlkooY6xMqNrNAIhAIpMdXCyDYWjskxSN5FuKjJt7Ru7Vx9sfcEin43jBJ9q"}]},"_npmUser":{"name":"jirutka","email":"jakub@jirutka.cz"},"directories":{},"maintainers":[{"name":"jirutka","email":"jakub@jirutka.cz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ajv-cli_6.0.0_1740063447397_0.2113639506403786"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-15T22:50:38.942Z","modified":"2025-02-20T14:57:27.753Z","6.0.0-beta.0":"2024-06-15T22:50:39.237Z","6.0.0-beta.1":"2024-06-18T14:19:05.271Z","6.0.0-beta.2":"2024-06-20T13:47:23.913Z","6.0.0-beta.3":"2024-06-24T17:34:39.667Z","6.0.0-beta.4":"2024-06-25T14:01:13.278Z","6.0.0-beta.5":"2024-07-29T20:11:34.097Z","6.0.0":"2025-02-20T14:57:27.571Z"},"bugs":{"url":"https://github.com/jirutka/ajv-cli/issues"},"author":{"name":"Jakub Jirutka","email":"jakub@jirutka.cz"},"license":"MIT","homepage":"https://github.com/jirutka/ajv-cli","keywords":["ajv","cli","json-schema-validator","json-schema","validator","yaml-schema"],"repository":{"type":"git","url":"git+https://github.com/jirutka/ajv-cli.git"},"description":"CLI for Ajv JSON Schema Validator with human-friendly error messages","maintainers":[{"name":"jirutka","email":"jakub@jirutka.cz"}],"readme":"Command line interface for [Ajv](https://github.com/ajv-validator/ajv), a JSON Schema validator.\n\nThis is a fork of the original [ajv-cli](https://github.com/ajv-validator/ajv-cli) 5 with many improvements (see below).\n\n## Changes from ajv-cli 5\n\nNotable changes from the original ajv-cli 5.\n\n### New features\n\n- A new human-friendly **error format `pretty`** that combines the source file location and JSON path of the invalid value, followed by a code span (a snippet of the validated file) with an in-place error message (see [Pretty format](#_pretty_format) in Examples).\n\n- A new **error format `line`**: `<filepath>:<line>:<column> - <message>` (see [Line format](#_line_format) in Examples).\n\n- Support for the [Code Climate Issue](https://github.com/codeclimate/platform/blob/master/spec/analyzers/SPEC.md#data-types) format compatible with the [Code Quality report](https://docs.gitlab.com/ee/ci/testing/code_quality.html#implement-a-custom-tool) in GitLab CI (see [Code Climate format](#_code_climate_format) in Examples).\n\n- A *validate* option `--merge-errors`, enabled by default, to merge related errors per instance path instead of reporting individual schema errors as returned by Ajv (see [JSON format without merging errors](#_json_format_without_merging_errors) in Examples).\n\n- A *validate* option `--errors-location` to add the source location (filename, line and column number) of each invalid value to validation errors (see [JSON format with location](#_json_format_with_location) in Examples).\n\n- A *compile* option `--code-esm` to export the validate function(s) as ECMAScript Modules (ESM) instead of CommonJS (see `code.esm` in Ajv options).\n\n- Workaround to **fix incorrect `schemaPath`** in validation errors (see [src/ajv-schema-path-workaround.ts](src/ajv-schema-path-workaround.ts) and [ajv-validator/ajv#512](https://github.com/ajv-validator/ajv/issues/512)).\n\n### (Breaking) Changes\n\n- **`-d` option** has been replaced with positional arguments (`ajv validate -s <schema> <data-file>…​`).\n\n- **`--no-<option>`** no longer works, boolean options can be disabled as `--<option>=false` or `--<option> false`.\n\n- The `validate` command is no longer implicit, it must always be specified (e.g. `ajv validate [options]`, not `ajv [options]`).\n\n- **Limited glob support** – The bloated [Glob](https://www.npmjs.com/package/glob) dependency has been replaced by [picomatch](https://www.npmjs.com/package/picomatch) and a custom implementation to traverse directories. However, it’s a simplified solution that does not support complex nested globs (e.g. `alpha/beta/*.{yml,d/**/*.yml}`).\n\n- The **default error format** has been changed from `js` to `pretty`.\n\n- The `line` format has been renamed to `json-oneline`.\n\n- The `text` format for errors has been replaced by the `jsonpath` format.\n\n- Only (structured) validation errors (see `--errors`) and changes (see `--changes`) are printed to **stdout**, all other messages are logged to **stderr**.\n\n- **`--strict-schema`** is disabled by default\\* (i.e. unknown keywords and formats are ignored) to comply with the JSON Schema specification.\n\n- `ajv compile` prints the generated code to stdout instead of nowhere if the **`-o`** option is not specified.\n\n- The default value of `--inline-refs` has been changed from `true` to `8` to speed up schema compilation (and validation).\n\n- If `--spec` is not provided, it’s determined by the `$schema` URI in the first passed schema (`-s`). It will only fallback to `draft-07` if it’s not found.\n\n- ajv-cli is now transpiled to **ECMAScript Modules** (ESM) instead of CommonJS.\n\n### Removed features\n\n- The **test** command (use `validate` instead).\n\n- The **migrate** command.\n\n- Support for loading schema and data files via `require` and omitting the `.json` extension in file paths.\n\n- Support for loading custom keywords modules in **TypeScript**.\n\n- Loading schemas and data in the **JSON5** format (CJSON is still supported).\n\n## Install\n\n### Using npm\n\n``` sh\nnpm install --global @jirutka/ajv-cli\n```\n\n### Download from Releases\n\najv-cli is also provided as a single JavaScript file with bundled dependencies, requiring only Node.js (version 20 or later) on the system.\n\n``` sh\ncurl -LO  https://github.com/jirutka/ajv-cli/releases/download/v6.0.0/ajv.cjs\ncurl -fsSL https://github.com/jirutka/ajv-cli/releases/download/v6.0.0/checksums.txt | sha256sum -c --ignore-missing\ninstall -D -m755 ajv.cjs /usr/local/bin/ajv\n```\n\n## Usage\n\nRefer to `ajv validate --help` and `ajv compile --help`.\n\n### Examples\n\n#### Pretty format\n\n    $ ajv validate -s schema.json data-invalid-1.yml\n\n    --> data-invalid-1.yml:6:10\n        #/www.encom.com/CNAME\n\n        |   A: 1.2.3.4\n        | www.encom.com:\n        |   owners: flynnsam\n      6 |   CNAME: [ encom.com ]\n        |          ^^^^^^^^^^^^^ must be string or object\n        | tron.encom.com:\n        |   owners: [ flynnkev, bradlala ]\n        |   A: 1.2.3.5\n\n#### Line format\n\n    $ ajv validate -s schema.json --errors=line data-invalid-1.yml\n\n    data-invalid-1.yml:6:10 - must be string or object\n\n#### JSON format\n\n    $ ajv validate -s schema.json --errors=json data-invalid-1.yml\n\n``` json\n[\n  {\n    \"message\": \"must be string or object\",\n    \"instancePath\": \"/www.encom.com/CNAME\",\n    \"schemaPath\": \"#/$defs/DomainObject/properties/CNAME/anyOf\"\n  }\n]\n```\n\n#### JSON format with location\n\n    $ ajv validate -s schema.json --errors=json --errors-location data-invalid-1.yml\n\n``` json\n[\n  {\n    \"message\": \"must be string or object\",\n    \"instancePath\": \"/www.encom.com/CNAME\",\n    \"schemaPath\": \"#/$defs/DomainObject/properties/CNAME/anyOf\",\n    \"instanceLocation\": {\n      \"filename\": \"data-invalid-1.yml\",\n      \"start\": {\n        \"line\": 6,\n        \"col\": 10\n      },\n      \"end\": {\n        \"line\": 6,\n        \"col\": 23\n      }\n    }\n  }\n]\n```\n\n#### JSON format verbose\n\n    $ ajv validate -s schema.json --errors=json --verbose data-invalid-1.yml\n\n``` json\n[\n  {\n    \"message\": \"must be string or object\",\n    \"instancePath\": \"/www.encom.com/CNAME\",\n    \"schemaPath\": \"#/$defs/DomainObject/properties/CNAME/anyOf\",\n    \"data\": [\n      \"encom.com\"\n    ],\n    \"schema\": [\n      {\n        \"$ref\": \"#/$defs/DomainName\"\n      },\n      {\n        \"type\": \"object\",\n        \"additionalProperties\": false,\n        \"required\": [\n          \"rdata\"\n        ],\n        \"properties\": {\n          \"rdata\": {\n            \"$ref\": \"#/$defs/DomainName\"\n          },\n          \"ttl\": {\n            \"type\": \"number\"\n          }\n        }\n      }\n    ],\n    \"parentSchema\": {\n      \"anyOf\": [\n        {\n          \"$ref\": \"#/$defs/DomainName\"\n        },\n        {\n          \"type\": \"object\",\n          \"additionalProperties\": false,\n          \"required\": [\n            \"rdata\"\n          ],\n          \"properties\": {\n            \"rdata\": {\n              \"$ref\": \"#/$defs/DomainName\"\n            },\n            \"ttl\": {\n              \"type\": \"number\"\n            }\n          }\n        }\n      ]\n    }\n  }\n]\n```\n\n#### JSON format without merging errors\n\n    $ ajv validate -s schema.json --errors=json --merge-errors=false data-invalid-1.yml\n\n``` json\n[\n  {\n    \"instancePath\": \"/www.encom.com/CNAME\",\n    \"schemaPath\": \"#/$defs/DomainName/type\",\n    \"keyword\": \"type\",\n    \"params\": {\n      \"type\": \"string\"\n    },\n    \"message\": \"must be string\"\n  },\n  {\n    \"instancePath\": \"/www.encom.com/CNAME\",\n    \"schemaPath\": \"#/$defs/DomainObject/properties/CNAME/anyOf/1/type\",\n    \"keyword\": \"type\",\n    \"params\": {\n      \"type\": \"object\"\n    },\n    \"message\": \"must be object\"\n  },\n  {\n    \"instancePath\": \"/www.encom.com/CNAME\",\n    \"schemaPath\": \"#/$defs/DomainObject/properties/CNAME/anyOf\",\n    \"keyword\": \"anyOf\",\n    \"params\": {},\n    \"message\": \"must match a schema in anyOf\"\n  }\n]\n```\n\n#### Code Climate format\n\n    $ ajv validate -s schema.json --errors=code-climate data-invalid-1.yml\n\n``` json\n[\n  {\n    \"description\": \"[schema] #/www.encom.com/CNAME must be string or object\",\n    \"check_name\": \"json-schema\",\n    \"fingerprint\": \"344ef8205ab8c5dea3b0ebd537519dfb005c5f5c\",\n    \"severity\": \"major\",\n    \"location\": {\n      \"path\": \"data-invalid-1.yml\",\n      \"positions\": {\n        \"begin\": {\n          \"line\": 6,\n          \"column\": 10\n        },\n        \"end\": {\n          \"line\": 6,\n          \"column\": 23\n        }\n      }\n    }\n  }\n]\n```\n\n## Credits\n\n- This project is a fork of the original [ajv-cli](https://github.com/ajv-validator/ajv-cli) written by [Evgeny Poberezkin](https://github.com/epoberezkin).\n\n- The code for merging related Ajv validation errors is taken from the [vscode-lintlens](https://github.com/ghmcadams/vscode-lintlens/tree/master/packages/simple-ajv-errors) project by [Gabriel McAdams](https://github.com/ghmcadams).\n\n## License\n\nThis project is licensed under [MIT License](https://opensource.org/license/mit/).\n","readmeFilename":"README.md"}