{"_id":"pajv","_rev":"5-c06adfb16942d6d5676124175ffe9573","name":"pajv","description":"A command line JSON Schema validator that supports many file formats. Fork of jessedc/ajv-cli.","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"pajv","displayName":"Polyglottal JSON Schema Validator","version":"1.0.0","description":" A command line JSON Schema validator that supports many file formats. Fork of jessedc/ajv-cli.","scripts":{"eslint":"eslint index.js commands/*.js test/*.js test/**/*.js","test-spec":"mocha test/*.spec.js -R spec","test-cov":"nyc npm run test-spec","test":"npm run eslint && npm run test-cov"},"nyc":{"exclude":["test","node_modules"],"reporter":["lcov","text-summary"],"cache":true},"bin":{"pajv":"index.js"},"preferGlobal":true,"keywords":["JSON","schema","validator","validation","jsonschema","json-schema","json-schema-validator","json-schema-validation","cson","hjson","ini","json5","xml","yaml"],"author":{"name":"Adam Voss"},"contributors":[{"name":"Jesse Collis","email":"jesse@jcmultimedia.com.au"}],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/json-schema-everywhere/pajv.git"},"dependencies":{"ajv":"^5.0.0","any-json":"^2.2.0","fast-json-patch":"^0.5.6","glob":"^7.0.3","minimist":"^1.2.0","util.promisify":"^1.0.0"},"devDependencies":{"ajv-keywords":"^2.0.0","coveralls":"^2.11.8","eslint":"^2.4.0","mocha":"^2.4.5","nyc":"^8.3.0","pre-commit":"^1.1.2"},"gitHead":"64e30a57a8d67b6fa2da5a76ad5e8cd72a5a9103","bugs":{"url":"https://github.com/json-schema-everywhere/pajv/issues"},"homepage":"https://github.com/json-schema-everywhere/pajv#readme","_id":"pajv@1.0.0","_shasum":"eae3727e7d05a826000d48367023000c771c71a2","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.3","_npmUser":{"name":"adamvoss","email":"vossad01@gmail.com"},"dist":{"shasum":"eae3727e7d05a826000d48367023000c771c71a2","tarball":"https://registry.npmjs.org/pajv/-/pajv-1.0.0.tgz","integrity":"sha512-oSE71XKMWQOiSovkH3Wt0dw9YcqPShdse9N7BRdrlK/2bhQ1YSQ2o3MWG0sX0VljMRePXVGaVxa2LdH3mN/U9A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1b+rUEQ2kLhBLqQlneqNOfmhouIMgKlnxW34FiO6EmwIgXOx1VbEFrI5C1GuvikawwLbmh53OcaHyZdeYyPMiwok="}]},"maintainers":[{"name":"adamvoss","email":"vossad01@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pajv-1.0.0.tgz_1498780184004_0.5480505854357034"}},"1.0.1":{"name":"pajv","displayName":"Polyglottal JSON Schema Validator","version":"1.0.1","description":" A command line JSON Schema validator that supports many file formats. Fork of jessedc/ajv-cli.","scripts":{"eslint":"eslint index.js commands/*.js test/*.js test/**/*.js","test-spec":"mocha test/*.spec.js -R spec","test-cov":"nyc npm run test-spec","test":"npm run eslint && npm run test-cov"},"nyc":{"exclude":["test","node_modules"],"reporter":["lcov","text-summary"],"cache":true},"bin":{"pajv":"index.js"},"preferGlobal":true,"keywords":["JSON","schema","validator","validation","jsonschema","json-schema","json-schema-validator","json-schema-validation","cson","hjson","ini","json5","xml","yaml"],"author":{"name":"Adam Voss"},"contributors":[{"name":"Jesse Collis","email":"jesse@jcmultimedia.com.au"}],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/json-schema-everywhere/pajv.git"},"dependencies":{"ajv":"^5.0.0","any-json":"^2.2.0","fast-json-patch":"^0.5.6","glob":"^7.0.3","minimist":"^1.2.0","util.promisify":"^1.0.0"},"devDependencies":{"ajv-keywords":"^2.0.0","coveralls":"^2.11.8","eslint":"^2.4.0","mocha":"^2.4.5","nyc":"^8.3.0","pre-commit":"^1.1.2"},"gitHead":"064e76a6e2b321a2e7e4f5c2146fd84adeda4b36","bugs":{"url":"https://github.com/json-schema-everywhere/pajv/issues"},"homepage":"https://github.com/json-schema-everywhere/pajv#readme","_id":"pajv@1.0.1","_shasum":"14d71bebfd68b38ed9e5e4232a36aaf1cdd7e191","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.3","_npmUser":{"name":"adamvoss","email":"vossad01@gmail.com"},"dist":{"shasum":"14d71bebfd68b38ed9e5e4232a36aaf1cdd7e191","tarball":"https://registry.npmjs.org/pajv/-/pajv-1.0.1.tgz","integrity":"sha512-hGbW3qJt/8tlIIF5iRCXN6F7sXEzCTqPmcv8eQRPcplJIAL/mavj5PIVDFR9Ur0NpGs4Z1jviejv5p0FCYZNtw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD39zOfDJeh4DX6f6C9Ymgkre60ll3QS1IaZRFXY6HmCwIgePnPt1WqOP0n7rXdx7iHVzv14ezj0/fsNFgYUweJKm0="}]},"maintainers":[{"name":"adamvoss","email":"vossad01@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pajv-1.0.1.tgz_1498784526538_0.07827935786917806"}},"1.1.0":{"name":"pajv","displayName":"Polyglottal JSON Schema Validator","version":"1.1.0","description":"A command line JSON Schema validator that supports many file formats. Fork of jessedc/ajv-cli.","scripts":{"eslint":"eslint index.js commands/*.js test/*.js test/**/*.js","test-spec":"mocha test/*.spec.js -R spec","test-cov":"nyc npm run test-spec","test":"npm run eslint && npm run test-cov"},"nyc":{"exclude":["test","node_modules"],"reporter":["lcov","text-summary"],"cache":true},"bin":{"pajv":"index.js"},"preferGlobal":true,"keywords":["JSON","schema","validator","validation","jsonschema","json-schema","json-schema-validator","json-schema-validation","cson","hjson","ini","json5","toml","xml","yaml"],"author":{"name":"Adam Voss"},"contributors":[{"name":"Jesse Collis","email":"jesse@jcmultimedia.com.au"}],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/json-schema-everywhere/pajv.git"},"dependencies":{"ajv":"^5.0.0","any-json":"^3.0.0","deasync":"^0.1.10","deasync-promise":"^1.0.1","fast-json-patch":"^0.5.6","glob":"^7.0.3","minimist":"^1.2.0","util.promisify":"^1.0.0"},"devDependencies":{"ajv-keywords":"^2.0.0","coveralls":"^2.11.8","eslint":"^2.4.0","mocha":"^2.4.5","nyc":"^8.3.0","pre-commit":"^1.1.2"},"gitHead":"95f04072b57066e5f39803f7b3c553d97f295263","bugs":{"url":"https://github.com/json-schema-everywhere/pajv/issues"},"homepage":"https://github.com/json-schema-everywhere/pajv#readme","_id":"pajv@1.1.0","_shasum":"dc418d12189ea93f9e634d3572577ad5f4e0cb94","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.2","_npmUser":{"name":"adamvoss","email":"vossad01@gmail.com"},"dist":{"shasum":"dc418d12189ea93f9e634d3572577ad5f4e0cb94","tarball":"https://registry.npmjs.org/pajv/-/pajv-1.1.0.tgz","integrity":"sha512-3en9hx5HCrqiBCtaR8VDUAAI6LrPB1lYQmIRWe5bOXb2iTbJksas9Q/syhS+t3iUwQU1wSe08WaYEC3foIRIRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEEhvuDNSXEIAKy+5e9t6eFYgTqPuntjcoXJOfIi8ZVlAiEAjRoaNkxV27NrnRxtmNnav9V3kU4UxhQ7So10DjAti24="}]},"maintainers":[{"name":"adamvoss","email":"vossad01@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pajv-1.1.0.tgz_1501874810286_0.5779159378726035"}},"1.2.0":{"name":"pajv","displayName":"Polyglottal JSON Schema Validator","version":"1.2.0","description":"A command line JSON Schema validator that supports many file formats. Fork of jessedc/ajv-cli.","scripts":{"eslint":"eslint index.js commands/*.js test/*.js test/**/*.js","test-spec":"mocha test/*.spec.js -R spec","test-cov":"nyc npm run test-spec","test":"npm run eslint && npm run test-cov"},"nyc":{"exclude":["test","node_modules"],"reporter":["lcov","text-summary"],"cache":true},"bin":{"pajv":"index.js"},"preferGlobal":true,"keywords":["JSON","schema","validator","validation","jsonschema","json-schema","json-schema-validator","json-schema-validation","cson","hjson","ini","json5","toml","xml","yaml"],"author":{"name":"Adam Voss"},"contributors":[{"name":"Jesse Collis","email":"jesse@jcmultimedia.com.au"}],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/json-schema-everywhere/pajv.git"},"dependencies":{"ajv":"^5.0.0","any-json":"^3.0.0","deasync":"^0.1.10","deasync-promise":"^1.0.1","fast-json-patch":"^0.5.6","glob":"^7.0.3","minimist":"^1.2.0","util.promisify":"^1.0.0"},"devDependencies":{"ajv-keywords":"^2.0.0","coveralls":"^2.11.8","eslint":"^2.4.0","mocha":"^2.4.5","nyc":"^8.3.0","pre-commit":"^1.1.2"},"gitHead":"7230054d0f8cc17ddbc683296e093f445dfd84d5","bugs":{"url":"https://github.com/json-schema-everywhere/pajv/issues"},"homepage":"https://github.com/json-schema-everywhere/pajv#readme","_id":"pajv@1.2.0","_shasum":"bbf8388c6c57af33650a3b85a0a7401661ca5972","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.1","_npmUser":{"name":"adamvoss","email":"vossad01@gmail.com"},"dist":{"shasum":"bbf8388c6c57af33650a3b85a0a7401661ca5972","tarball":"https://registry.npmjs.org/pajv/-/pajv-1.2.0.tgz","integrity":"sha512-bNJ4USHijOH4ZX64HlzIdooa0KS+o+nOqVQZtHXzzH4OB+hYNXTyPQ07Rq8gWaTJvt1Hu89aeWlmKARgcdo2IQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDckWxQcXIcItN4SgNjFNmVq6ocGfVbEi8fKPc3cc6ADwIgI3rlKp7mLjrJXzXf5Wy8fKqfWh1BZKHc9nL9YewEWLI="}]},"maintainers":[{"name":"adamvoss","email":"vossad01@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pajv-1.2.0.tgz_1503066220427_0.988050130661577"}}},"readme":"# Polyglottal JSON Schema Validator (Polyglottal Ajv)\n\nCommand line interface for [ajv](https://github.com/epoberezkin/ajv) that utilizes [any-json](https://github.com/laktak/any-json/) to provide validation against many data formats. `pajv` can validate: **[CSON](https://github.com/bevry/cson), [Hjson](http://hjson.org/), [JSON](http://json.org/), [JSON5](http://json5.org/), [TOML](https://github.com/toml-lang/toml), and [YAML](http://yaml.org/)** files using JSON Schema.  pajv is a fork of [ajv-cli](https://github.com/jessedc/ajv-cli).\n\n[![Build Status](https://travis-ci.org/json-schema-everywhere/pajv.svg?branch=master)](https://travis-ci.org/json-schema-everywhere/pajv)\n[![npm version](https://badge.fury.io/js/pajv.svg)](https://www.npmjs.com/package/pajv)\n[![Code Climate](https://codeclimate.com/github/json-schema-everywhere/pajv/badges/gpa.svg)](https://codeclimate.com/github/json-schema-everywhere/pajv)\n[![Coverage Status](https://coveralls.io/repos/github/json-schema-everywhere/pajv/badge.svg?branch=master)](https://coveralls.io/github/json-schema-everywhere/pajv?branch=master)\n\n## Contents\n\n- [Installation](#installation)\n- Commands\n  - [Help](#help)\n  - [Validate data](#validate-data)\n  - [Test validation result](#test-validation-result)\n- [Ajv options](#ajv-options)\n- [Version History, License](#version_history)\n\n\n## Installation\n\n```sh\nnpm install -g pajv\n```\n\n\n## Help\n\n```sh\npajv help\npajv help validate\npajv help test\n```\n\n\n## Validate data\n\nThis command validates data files against JSON-schema\n\n```sh\npajv validate -s test/schema.json -d test/valid_data.json\npajv -s test/schema.json -d test/valid_data.json\n```\n\nYou can omit `validate` command name.\n\n\n#### Parameters\n\n##### `-s` - file name of JSON-schema\n\nOnly one schema can be passed in this parameter\n\n\n##### `-d` - JSON data\n\nMultiple data files can be passed, as in `-r` parameter:\n\n```sh\npajv -s test/schema.json -d \"test/valid*.json\"\n```\n\nIf some file is invalid exit code will be 1.\n\n\n##### `-r` - referenced schemas\n\nThe schema in `-s` parameter can reference any of these schemas with `$ref` keyword.\n\nMultiple schemas can be passed both by using this parameter mupltiple times and with [glob patterns](https://github.com/isaacs/node-glob#glob-primer). Glob pattern should be quoted and extensions cannot be omitted.\n\n\n##### `-m` - meta-schemas\n\nSchemas can use any of these schemas as a meta-schema (that is the schema used in `$schema` keyword - it is used to validate the schema itself).\n\nMultiple meta-schemas can be passed, as in `-r` parameter.\n\n\n##### `-c` - custom keywords/formats definitions\n\nYou can pass module(s) that define custom keywords/formats. The modules should export a function that accepts Ajv instance as a parameter. The file name should start with \".\", it will be resolved relative to the current folder. The package name can also be passed - it will be used in require as is.\n\nFor example, you can use `-c ajv-keywords` to add all keywords from [ajv-keywords](https://github.com/epoberezkin/ajv-keywords) package or `-c ajv-keywords/keywords/typeof` to add only typeof keyword.\n\n\n#### Options\n\n- `--errors=`: error reporting format. Possible values:\n    - `js` (default): JavaScript object\n    - `json`: JSON with indentation and line-breaks\n    - `line`: JSON without indentaion/line-breaks (for easy parsing)\n    - `text`: human readable error messages with data paths\n\n- `--changes=`: detect changes in data after validation.<br>\n    Data can be modifyed with [Ajv options](#ajv-options) `--remove-additional`, `--use-defaults` and `--coerce-types`).<br>\n    The changes are reported in JSON-patch format ([RFC6902](https://tools.ietf.org/html/rfc6902)).<br>\n    Possible values are `js` (default), `json` and `line` (see `--errors` option).\n\n\n## Test validation result\n\nThis command asserts that the result of the validation is as expected.\n\n```sh\npajv test -s test/schema.json -d test/valid_data.json --valid\npajv test -s test/schema.json -d test/invalid_data.json --invalid\n```\n\nIf the option `--valid` (`--invalid`) is used for the `test` to pass (exit code 0) the data file(s) should be valid (invalid).\n\nThis command supports the same options and parameters as [validate](#validate-data) with the exception of `--changes`.\n\n\n## Ajv options\n\nYou can pass the following Ajv options:\n\n|Option|Description|\n|---|---|\n|`--data`|use [$data references](https://github.com/epoberezkin/ajv#data-reference)|\n|`--all-errors`|collect all errors|\n|`--unknown-formats=`|handling of unknown formats|\n|`--verbose`|include schema and data in errors|\n|`--json-pointers`|report data paths in errors using JSON-pointers|\n|`--unique-items=false`|do not validate uniqueItems keyword|\n|`--unicode=false`|count unicode pairs as 2 characters|\n|`--format=full`|format mode|\n|`--schema-id=`|keyword(s) to use as schema ID|\n|`--extend-refs=`|validation of other keywords when $ref is present in the schema|\n|`--missing-refs=`|handle missing referenced schemas (true/ignore/fail)|\n|`--inline-refs=`|referenced schemas compilation mode (true/false/\\<number\\>)|\n|`--remove-additional`|remove additional properties (true/all/failing)|\n|`--use-defaults`|replace missing properties/items with the values from default keyword|\n|`--coerce-types`|change type of data to match type keyword|\n|`--multiple-of-precision`|precision of multipleOf, pass integer number|\n|`--error-data-path=property`|data path in errors|\n|`--messages=false`|do not include text messages in errors|\n\nOptions can be passed in either dash-case and camelCase.\n\nSee [Ajv Options](https://github.com/epoberezkin/ajv#options) for more information.\n\n\n## Version History\n\nSee https://github.com/json-schema-everywhere/pajv/releases\n\n\n## Licence\n\nMIT\n","maintainers":[{"name":"adamvoss","email":"vossad01@gmail.com"}],"time":{"modified":"2022-06-23T08:20:06.282Z","created":"2017-06-29T23:49:44.947Z","1.0.0":"2017-06-29T23:49:44.947Z","1.0.1":"2017-06-30T01:02:07.930Z","1.1.0":"2017-08-04T19:26:51.162Z","1.2.0":"2017-08-18T14:23:41.425Z"},"homepage":"https://github.com/json-schema-everywhere/pajv#readme","keywords":["JSON","schema","validator","validation","jsonschema","json-schema","json-schema-validator","json-schema-validation","cson","hjson","ini","json5","toml","xml","yaml"],"repository":{"type":"git","url":"git+https://github.com/json-schema-everywhere/pajv.git"},"contributors":[{"name":"Jesse Collis","email":"jesse@jcmultimedia.com.au"}],"author":{"name":"Adam Voss"},"bugs":{"url":"https://github.com/json-schema-everywhere/pajv/issues"},"license":"MIT","readmeFilename":"README.md"}