GT2/GT2-Android/node_modules/jsonschema/package.json

110 lines
12 KiB
JSON
Raw Normal View History

{
"_args": [
[
{
"raw": "jsonschema@^1.1.0",
"scope": null,
"escapedName": "jsonschema",
"name": "jsonschema",
"rawSpec": "^1.1.0",
"spec": ">=1.1.0 <2.0.0",
"type": "range"
},
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/xdl"
]
],
"_from": "jsonschema@>=1.1.0 <2.0.0",
"_id": "jsonschema@1.2.2",
"_inCache": true,
"_location": "/jsonschema",
"_nodeVersion": "8.9.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/jsonschema-1.2.2.tgz_1512980134346_0.7657116004265845"
},
"_npmUser": {
"name": "tdegrunt",
"email": "tom@degrunt.nl"
},
"_npmVersion": "5.5.1",
"_phantomChildren": {},
"_requested": {
"raw": "jsonschema@^1.1.0",
"scope": null,
"escapedName": "jsonschema",
"name": "jsonschema",
"rawSpec": "^1.1.0",
"spec": ">=1.1.0 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/xdl"
],
"_resolved": "https://registry.npmjs.org/jsonschema/-/jsonschema-1.2.2.tgz",
"_shasum": "83ab9c63d65bf4d596f91d81195e78772f6452bc",
"_shrinkwrap": null,
"_spec": "jsonschema@^1.1.0",
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/xdl",
"author": {
"name": "Tom de Grunt",
"email": "tom@degrunt.nl"
},
"bugs": {
"url": "https://github.com/tdegrunt/jsonschema/issues"
},
"contributors": [
{
"name": "Austin Wright"
}
],
"dependencies": {},
"description": "A fast and easy to use JSON Schema validator",
"devDependencies": {
"chai": "~1.5.0",
"mocha": "~1.8.2"
},
"directories": {},
"dist": {
"integrity": "sha512-iX5OFQ6yx9NgbHCwse51ohhKgLuLL7Z5cNOeZOPIlDUtAMrxlruHLzVZxbltdHE5mEDXN+75oFOwq6Gn0MZwsA==",
"shasum": "83ab9c63d65bf4d596f91d81195e78772f6452bc",
"tarball": "https://registry.npmjs.org/jsonschema/-/jsonschema-1.2.2.tgz"
},
"engines": {
"node": "*"
},
"gitHead": "7627244953de64299862647c166b2cac02fe2a7a",
"homepage": "https://github.com/tdegrunt/jsonschema#readme",
"keywords": [
"json",
"schema",
"jsonschema",
"validator",
"validation"
],
"license": "MIT",
"main": "./lib",
"maintainers": [
{
"name": "tdegrunt",
"email": "tom@degrunt.nl"
},
{
"name": "acubed",
"email": "aaa@bzfx.net"
}
],
"name": "jsonschema",
"optionalDependencies": {},
"readme": "[![Build Status](https://secure.travis-ci.org/tdegrunt/jsonschema.svg)](http://travis-ci.org/tdegrunt/jsonschema)\n\n# jsonschema\n[JSON schema](http://json-schema.org/) validator, which is designed to be fast and simple to use.\nThe latest IETF published draft is v6, this library is mostly v4 compatible.\n\n## Contributing & bugs\nPlease fork the repository, make the changes in your fork and include tests. Once you're done making changes, send in a pull request.\n\n### Bug reports\nPlease include a test which shows why the code fails.\n\n## Usage\n\n### Simple\nSimple object validation using JSON schemas.\n\n```javascript\n var Validator = require('jsonschema').Validator;\n var v = new Validator();\n var instance = 4;\n var schema = {\"type\": \"number\"};\n console.log(v.validate(instance, schema));\n```\n\n### Even simpler\n\n```javascript\n var validate = require('jsonschema').validate;\n console.log(validate(4, {\"type\": \"number\"}));\n```\n\n### Complex example, with split schemas and references\n\n```javascript\n var Validator = require('jsonschema').Validator;\n var v = new Validator();\n\n // Address, to be embedded on Person\n var addressSchema = {\n \"id\": \"/SimpleAddress\",\n \"type\": \"object\",\n \"properties\": {\n \"lines\": {\n \"type\": \"array\",\n \"items\": {\"type\": \"string\"}\n },\n \"zip\": {\"type\": \"string\"},\n \"city\": {\"type\": \"string\"},\n \"country\": {\"type\": \"string\"}\n },\n \"required\": [\"country\"]\n };\n\n // Person\n var schema = {\n \"id\": \"/SimplePerson\",\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\"type\": \"string\"},\n \"address\": {\"$ref\": \"/SimpleAddress\"},\n \"votes\": {\"type\": \"integer\", \"minimum\": 1}\n }\n };\n\n var p = {\n \"name\": \"Barack Obama\",\n \"address\": {\n \"lines\": [ \"1600 Pennsylvania Avenue Northwest\" ],\n \"zip\": \"DC 20500\",\n \"city\": \"Washington\",\n \"country\": \"USA\"\n },\n \"votes\": \"lots\"\n };\n\n v.addSchema(addressSchema, '/SimpleAddress');\n console.log(v.validate(p, schema));\n```\n\nFor a comprehensive, annotated example illustrating all possible validation options, see [examples/all.js](./examples/all.js)\n\n## Features\n\n### Definitions\nAll schema definitions are supported, $schema is ignored.\n\n### Types\nAll types are supported\n\n### Formats\n#### Disabling the format keyword.\n\nYou may disable format validation by providing `disableFormat: true` to the validator\noptions.\n\n#### String Formats\nAll formats are supported, phone numbers are expected to follow the [E.123](http://en.wikipedia.org/wiki/E.123) standard.\n\n#### Custom Formats\nYou may add your own custom format functions. Format functions accept the input\nbeing validated and return a boolean value. If the returned value is `true`, then\nvalidation succeeds. If the returned value is `false`, then validation fails.\n\n* Formats added to `Validator.prototype.customFormats` do not affect previously instantiated\nValidators. This is to prevent validator instances from being altered once created.\nIt is conceivable that multiple validators may be created to handle multiple schemas\nwith different formats in a program.\n* Formats added to `validator.customFormats` affect only that Validator instance.\n\nHere is an example that uses custom formats:\n\n```\nValidator.prototype.customFormats.myFormat = function(input) {\n return input === 'myFormat';\n};\n\nvar validator = new Validator();\nvalidator.validate('myFormat', {type: 'string', format: 'myFormat'}).valid; // true\nvalidator.validate('foo', {type: 'string', format: 'myFormat'}).valid; // false\n```\n\n### Results\nThe first error found will be thrown as an `Error` object if `options.throwError` is `true`. Otherwise all results will be appended to the `result.errors` array which also contains the success flag `result.valid`.\n\nWhen `oneOf` or `anyOf` validations fail, errors that caused any of the sub-schemas referen
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git://github.com/tdegrunt/jsonschema.git"
},
"scripts": {
"test": "mocha -R spec"
},
"typings": "./lib/index.d.ts",
"version": "1.2.2"
}