GT2/GT2-iOS/node_modules/json-schema-traverse/package.json

108 lines
5.0 KiB
JSON

{
"_args": [
[
{
"raw": "json-schema-traverse@^0.3.0",
"scope": null,
"escapedName": "json-schema-traverse",
"name": "json-schema-traverse",
"rawSpec": "^0.3.0",
"spec": ">=0.3.0 <0.4.0",
"type": "range"
},
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/ajv"
]
],
"_from": "json-schema-traverse@>=0.3.0 <0.4.0",
"_id": "json-schema-traverse@0.3.1",
"_inCache": true,
"_location": "/json-schema-traverse",
"_nodeVersion": "6.9.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/json-schema-traverse-0.3.1.tgz_1498261856588_0.601617609616369"
},
"_npmUser": {
"name": "esp",
"email": "e.poberezkin@me.com"
},
"_npmVersion": "3.10.8",
"_phantomChildren": {},
"_requested": {
"raw": "json-schema-traverse@^0.3.0",
"scope": null,
"escapedName": "json-schema-traverse",
"name": "json-schema-traverse",
"rawSpec": "^0.3.0",
"spec": ">=0.3.0 <0.4.0",
"type": "range"
},
"_requiredBy": [
"/ajv"
],
"_resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz",
"_shasum": "349a6d44c53a51de89b40805c5d5e59b417d3340",
"_shrinkwrap": null,
"_spec": "json-schema-traverse@^0.3.0",
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/ajv",
"author": {
"name": "Evgeny Poberezkin"
},
"bugs": {
"url": "https://github.com/epoberezkin/json-schema-traverse/issues"
},
"dependencies": {},
"description": "Traverse JSON Schema passing each schema object to callback",
"devDependencies": {
"coveralls": "^2.13.1",
"eslint": "^3.19.0",
"mocha": "^3.4.2",
"nyc": "^11.0.2",
"pre-commit": "^1.2.2"
},
"directories": {},
"dist": {
"shasum": "349a6d44c53a51de89b40805c5d5e59b417d3340",
"tarball": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz"
},
"gitHead": "f0a6627655525debea519dc8ebb4cf35f3c8e85f",
"homepage": "https://github.com/epoberezkin/json-schema-traverse#readme",
"keywords": [
"JSON-Schema",
"traverse",
"iterate"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "esp",
"email": "e.poberezkin@me.com"
}
],
"name": "json-schema-traverse",
"nyc": {
"exclude": [
"**/spec/**",
"node_modules"
],
"reporter": [
"lcov",
"text-summary"
]
},
"optionalDependencies": {},
"readme": "# json-schema-traverse\nTraverse JSON Schema passing each schema object to callback\n\n[![Build Status](https://travis-ci.org/epoberezkin/json-schema-traverse.svg?branch=master)](https://travis-ci.org/epoberezkin/json-schema-traverse)\n[![npm version](https://badge.fury.io/js/json-schema-traverse.svg)](https://www.npmjs.com/package/json-schema-traverse)\n[![Coverage Status](https://coveralls.io/repos/github/epoberezkin/json-schema-traverse/badge.svg?branch=master)](https://coveralls.io/github/epoberezkin/json-schema-traverse?branch=master)\n\n\n## Install\n\n```\nnpm install json-schema-traverse\n```\n\n\n## Usage\n\n```javascript\nconst traverse = require('json-schema-traverse');\nconst schema = {\n properties: {\n foo: {type: 'string'},\n bar: {type: 'integer'}\n }\n};\n\ntraverse(schema, cb);\n// cb is called 3 times with:\n// 1. root schema\n// 2. {type: 'string'}\n// 3. {type: 'integer'}\n```\n\nCallback function is called for each schema object (not including draft-06 boolean schemas), including the root schema. Schema references ($ref) are not resolved, they are passed as is.\n\nCallback is passed these parameters:\n\n- _schema_: the current schema object\n- _JSON pointer_: from the root schema to the current schema object\n- _root schema_: the schema passed to `traverse` object\n- _parent JSON pointer_: from the root schema to the parent schema object (see below)\n- _parent keyword_: the keyword inside which this schema appears (e.g. `properties`, `anyOf`, etc.)\n- _parent schema_: not necessarily parent object/array; in the example above the parent schema for `{type: 'string'}` is the root schema\n- _index/property_: index or property name in the array/object containing multiple schemas; in the example above for `{type: 'string'}` the property name is `'foo'`\n\n\n## Traverse objects in all unknown keywords\n\n```javascript\nconst traverse = require('json-schema-traverse');\nconst schema = {\n mySchema: {\n minimum: 1,\n maximum: 2\n }\n};\n\ntraverse(schema, {allKeys: true}, cb);\n// cb is called 2 times with:\n// 1. root schema\n// 2. mySchema\n```\n\nWithout option `allKeys: true` callback will be called only with root schema.\n\n\n## License\n\n[MIT](https://github.com/epoberezkin/json-schema-traverse/blob/master/LICENSE)\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/epoberezkin/json-schema-traverse.git"
},
"scripts": {
"eslint": "eslint index.js spec",
"test": "npm run eslint && nyc npm run test-spec",
"test-spec": "mocha spec -R spec"
},
"version": "0.3.1"
}