This commit is contained in:
eric sciple 2020-01-24 12:20:19 -05:00
parent beb1329f9f
commit 2b95e76931
7736 changed files with 1874747 additions and 51184 deletions

5
node_modules/json-schema/README.md generated vendored Normal file
View file

@ -0,0 +1,5 @@
JSON Schema is a repository for the JSON Schema specification, reference schemas and a CommonJS implementation of JSON Schema (not the only JavaScript implementation of JSON Schema, JSV is another excellent JavaScript validator).
Code is licensed under the AFL or BSD license as part of the Persevere
project which is administered under the Dojo foundation,
and all contributions require a Dojo CLA.

68
node_modules/json-schema/draft-00/hyper-schema generated vendored Normal file
View file

@ -0,0 +1,68 @@
{
"$schema" : "http://json-schema.org/draft-00/hyper-schema#",
"id" : "http://json-schema.org/draft-00/hyper-schema#",
"properties" : {
"links" : {
"type" : "array",
"items" : {"$ref" : "http://json-schema.org/draft-00/links#"},
"optional" : true
},
"fragmentResolution" : {
"type" : "string",
"optional" : true,
"default" : "dot-delimited"
},
"root" : {
"type" : "boolean",
"optional" : true,
"default" : false
},
"readonly" : {
"type" : "boolean",
"optional" : true,
"default" : false
},
"pathStart" : {
"type" : "string",
"optional" : true,
"format" : "uri"
},
"mediaType" : {
"type" : "string",
"optional" : true,
"format" : "media-type"
},
"alternate" : {
"type" : "array",
"items" : {"$ref" : "#"},
"optional" : true
}
},
"links" : [
{
"href" : "{$ref}",
"rel" : "full"
},
{
"href" : "{$schema}",
"rel" : "describedby"
},
{
"href" : "{id}",
"rel" : "self"
}
],
"fragmentResolution" : "dot-delimited",
"extends" : {"$ref" : "http://json-schema.org/draft-00/schema#"}
}

26
node_modules/json-schema/draft-00/json-ref generated vendored Normal file
View file

@ -0,0 +1,26 @@
{
"$schema" : "http://json-schema.org/draft-00/hyper-schema#",
"id" : "http://json-schema.org/draft-00/json-ref#",
"items" : {"$ref" : "#"},
"additionalProperties" : {"$ref" : "#"},
"links" : [
{
"href" : "{$ref}",
"rel" : "full"
},
{
"href" : "{$schema}",
"rel" : "describedby"
},
{
"href" : "{id}",
"rel" : "self"
}
],
"fragmentResolution" : "dot-delimited"
}

33
node_modules/json-schema/draft-00/links generated vendored Normal file
View file

@ -0,0 +1,33 @@
{
"$schema" : "http://json-schema.org/draft-00/hyper-schema#",
"id" : "http://json-schema.org/draft-00/links#",
"type" : "object",
"properties" : {
"href" : {
"type" : "string"
},
"rel" : {
"type" : "string"
},
"method" : {
"type" : "string",
"default" : "GET",
"optional" : true
},
"enctype" : {
"type" : "string",
"requires" : "method",
"optional" : true
},
"properties" : {
"type" : "object",
"additionalProperties" : {"$ref" : "http://json-schema.org/draft-00/hyper-schema#"},
"optional" : true
}
}
}

155
node_modules/json-schema/draft-00/schema generated vendored Normal file
View file

@ -0,0 +1,155 @@
{
"$schema" : "http://json-schema.org/draft-00/hyper-schema#",
"id" : "http://json-schema.org/draft-00/schema#",
"type" : "object",
"properties" : {
"type" : {
"type" : ["string", "array"],
"items" : {
"type" : ["string", {"$ref" : "#"}]
},
"optional" : true,
"default" : "any"
},
"properties" : {
"type" : "object",
"additionalProperties" : {"$ref" : "#"},
"optional" : true,
"default" : {}
},
"items" : {
"type" : [{"$ref" : "#"}, "array"],
"items" : {"$ref" : "#"},
"optional" : true,
"default" : {}
},
"optional" : {
"type" : "boolean",
"optional" : true,
"default" : false
},
"additionalProperties" : {
"type" : [{"$ref" : "#"}, "boolean"],
"optional" : true,
"default" : {}
},
"requires" : {
"type" : ["string", {"$ref" : "#"}],
"optional" : true
},
"minimum" : {
"type" : "number",
"optional" : true
},
"maximum" : {
"type" : "number",
"optional" : true
},
"minimumCanEqual" : {
"type" : "boolean",
"optional" : true,
"requires" : "minimum",
"default" : true
},
"maximumCanEqual" : {
"type" : "boolean",
"optional" : true,
"requires" : "maximum",
"default" : true
},
"minItems" : {
"type" : "integer",
"optional" : true,
"minimum" : 0,
"default" : 0
},
"maxItems" : {
"type" : "integer",
"optional" : true,
"minimum" : 0
},
"pattern" : {
"type" : "string",
"optional" : true,
"format" : "regex"
},
"minLength" : {
"type" : "integer",
"optional" : true,
"minimum" : 0,
"default" : 0
},
"maxLength" : {
"type" : "integer",
"optional" : true
},
"enum" : {
"type" : "array",
"optional" : true,
"minItems" : 1
},
"title" : {
"type" : "string",
"optional" : true
},
"description" : {
"type" : "string",
"optional" : true
},
"format" : {
"type" : "string",
"optional" : true
},
"contentEncoding" : {
"type" : "string",
"optional" : true
},
"default" : {
"type" : "any",
"optional" : true
},
"maxDecimal" : {
"type" : "integer",
"optional" : true,
"minimum" : 0
},
"disallow" : {
"type" : ["string", "array"],
"items" : {"type" : "string"},
"optional" : true
},
"extends" : {
"type" : [{"$ref" : "#"}, "array"],
"items" : {"$ref" : "#"},
"optional" : true,
"default" : {}
}
},
"optional" : true,
"default" : {}
}

68
node_modules/json-schema/draft-01/hyper-schema generated vendored Normal file
View file

@ -0,0 +1,68 @@
{
"$schema" : "http://json-schema.org/draft-01/hyper-schema#",
"id" : "http://json-schema.org/draft-01/hyper-schema#",
"properties" : {
"links" : {
"type" : "array",
"items" : {"$ref" : "http://json-schema.org/draft-01/links#"},
"optional" : true
},
"fragmentResolution" : {
"type" : "string",
"optional" : true,
"default" : "dot-delimited"
},
"root" : {
"type" : "boolean",
"optional" : true,
"default" : false
},
"readonly" : {
"type" : "boolean",
"optional" : true,
"default" : false
},
"pathStart" : {
"type" : "string",
"optional" : true,
"format" : "uri"
},
"mediaType" : {
"type" : "string",
"optional" : true,
"format" : "media-type"
},
"alternate" : {
"type" : "array",
"items" : {"$ref" : "#"},
"optional" : true
}
},
"links" : [
{
"href" : "{$ref}",
"rel" : "full"
},
{
"href" : "{$schema}",
"rel" : "describedby"
},
{
"href" : "{id}",
"rel" : "self"
}
],
"fragmentResolution" : "dot-delimited",
"extends" : {"$ref" : "http://json-schema.org/draft-01/schema#"}
}

26
node_modules/json-schema/draft-01/json-ref generated vendored Normal file
View file

@ -0,0 +1,26 @@
{
"$schema" : "http://json-schema.org/draft-01/hyper-schema#",
"id" : "http://json-schema.org/draft-01/json-ref#",
"items" : {"$ref" : "#"},
"additionalProperties" : {"$ref" : "#"},
"links" : [
{
"href" : "{$ref}",
"rel" : "full"
},
{
"href" : "{$schema}",
"rel" : "describedby"
},
{
"href" : "{id}",
"rel" : "self"
}
],
"fragmentResolution" : "dot-delimited"
}

33
node_modules/json-schema/draft-01/links generated vendored Normal file
View file

@ -0,0 +1,33 @@
{
"$schema" : "http://json-schema.org/draft-01/hyper-schema#",
"id" : "http://json-schema.org/draft-01/links#",
"type" : "object",
"properties" : {
"href" : {
"type" : "string"
},
"rel" : {
"type" : "string"
},
"method" : {
"type" : "string",
"default" : "GET",
"optional" : true
},
"enctype" : {
"type" : "string",
"requires" : "method",
"optional" : true
},
"properties" : {
"type" : "object",
"additionalProperties" : {"$ref" : "http://json-schema.org/draft-01/hyper-schema#"},
"optional" : true
}
}
}

155
node_modules/json-schema/draft-01/schema generated vendored Normal file
View file

@ -0,0 +1,155 @@
{
"$schema" : "http://json-schema.org/draft-01/hyper-schema#",
"id" : "http://json-schema.org/draft-01/schema#",
"type" : "object",
"properties" : {
"type" : {
"type" : ["string", "array"],
"items" : {
"type" : ["string", {"$ref" : "#"}]
},
"optional" : true,
"default" : "any"
},
"properties" : {
"type" : "object",
"additionalProperties" : {"$ref" : "#"},
"optional" : true,
"default" : {}
},
"items" : {
"type" : [{"$ref" : "#"}, "array"],
"items" : {"$ref" : "#"},
"optional" : true,
"default" : {}
},
"optional" : {
"type" : "boolean",
"optional" : true,
"default" : false
},
"additionalProperties" : {
"type" : [{"$ref" : "#"}, "boolean"],
"optional" : true,
"default" : {}
},
"requires" : {
"type" : ["string", {"$ref" : "#"}],
"optional" : true
},
"minimum" : {
"type" : "number",
"optional" : true
},
"maximum" : {
"type" : "number",
"optional" : true
},
"minimumCanEqual" : {
"type" : "boolean",
"optional" : true,
"requires" : "minimum",
"default" : true
},
"maximumCanEqual" : {
"type" : "boolean",
"optional" : true,
"requires" : "maximum",
"default" : true
},
"minItems" : {
"type" : "integer",
"optional" : true,
"minimum" : 0,
"default" : 0
},
"maxItems" : {
"type" : "integer",
"optional" : true,
"minimum" : 0
},
"pattern" : {
"type" : "string",
"optional" : true,
"format" : "regex"
},
"minLength" : {
"type" : "integer",
"optional" : true,
"minimum" : 0,
"default" : 0
},
"maxLength" : {
"type" : "integer",
"optional" : true
},
"enum" : {
"type" : "array",
"optional" : true,
"minItems" : 1
},
"title" : {
"type" : "string",
"optional" : true
},
"description" : {
"type" : "string",
"optional" : true
},
"format" : {
"type" : "string",
"optional" : true
},
"contentEncoding" : {
"type" : "string",
"optional" : true
},
"default" : {
"type" : "any",
"optional" : true
},
"maxDecimal" : {
"type" : "integer",
"optional" : true,
"minimum" : 0
},
"disallow" : {
"type" : ["string", "array"],
"items" : {"type" : "string"},
"optional" : true
},
"extends" : {
"type" : [{"$ref" : "#"}, "array"],
"items" : {"$ref" : "#"},
"optional" : true,
"default" : {}
}
},
"optional" : true,
"default" : {}
}

68
node_modules/json-schema/draft-02/hyper-schema generated vendored Normal file
View file

@ -0,0 +1,68 @@
{
"$schema" : "http://json-schema.org/draft-02/hyper-schema#",
"id" : "http://json-schema.org/draft-02/hyper-schema#",
"properties" : {
"links" : {
"type" : "array",
"items" : {"$ref" : "http://json-schema.org/draft-02/links#"},
"optional" : true
},
"fragmentResolution" : {
"type" : "string",
"optional" : true,
"default" : "slash-delimited"
},
"root" : {
"type" : "boolean",
"optional" : true,
"default" : false
},
"readonly" : {
"type" : "boolean",
"optional" : true,
"default" : false
},
"pathStart" : {
"type" : "string",
"optional" : true,
"format" : "uri"
},
"mediaType" : {
"type" : "string",
"optional" : true,
"format" : "media-type"
},
"alternate" : {
"type" : "array",
"items" : {"$ref" : "#"},
"optional" : true
}
},
"links" : [
{
"href" : "{$ref}",
"rel" : "full"
},
{
"href" : "{$schema}",
"rel" : "describedby"
},
{
"href" : "{id}",
"rel" : "self"
}
],
"fragmentResolution" : "slash-delimited",
"extends" : {"$ref" : "http://json-schema.org/draft-02/schema#"}
}

26
node_modules/json-schema/draft-02/json-ref generated vendored Normal file
View file

@ -0,0 +1,26 @@
{
"$schema" : "http://json-schema.org/draft-02/hyper-schema#",
"id" : "http://json-schema.org/draft-02/json-ref#",
"items" : {"$ref" : "#"},
"additionalProperties" : {"$ref" : "#"},
"links" : [
{
"href" : "{$ref}",
"rel" : "full"
},
{
"href" : "{$schema}",
"rel" : "describedby"
},
{
"href" : "{id}",
"rel" : "self"
}
],
"fragmentResolution" : "dot-delimited"
}

35
node_modules/json-schema/draft-02/links generated vendored Normal file
View file

@ -0,0 +1,35 @@
{
"$schema" : "http://json-schema.org/draft-02/hyper-schema#",
"id" : "http://json-schema.org/draft-02/links#",
"type" : "object",
"properties" : {
"href" : {
"type" : "string"
},
"rel" : {
"type" : "string"
},
"targetSchema" : {"$ref" : "http://json-schema.org/draft-02/hyper-schema#"},
"method" : {
"type" : "string",
"default" : "GET",
"optional" : true
},
"enctype" : {
"type" : "string",
"requires" : "method",
"optional" : true
},
"properties" : {
"type" : "object",
"additionalProperties" : {"$ref" : "http://json-schema.org/draft-02/hyper-schema#"},
"optional" : true
}
}
}

166
node_modules/json-schema/draft-02/schema generated vendored Normal file
View file

@ -0,0 +1,166 @@
{
"$schema" : "http://json-schema.org/draft-02/hyper-schema#",
"id" : "http://json-schema.org/draft-02/schema#",
"type" : "object",
"properties" : {
"type" : {
"type" : ["string", "array"],
"items" : {
"type" : ["string", {"$ref" : "#"}]
},
"optional" : true,
"uniqueItems" : true,
"default" : "any"
},
"properties" : {
"type" : "object",
"additionalProperties" : {"$ref" : "#"},
"optional" : true,
"default" : {}
},
"items" : {
"type" : [{"$ref" : "#"}, "array"],
"items" : {"$ref" : "#"},
"optional" : true,
"default" : {}
},
"optional" : {
"type" : "boolean",
"optional" : true,
"default" : false
},
"additionalProperties" : {
"type" : [{"$ref" : "#"}, "boolean"],
"optional" : true,
"default" : {}
},
"requires" : {
"type" : ["string", {"$ref" : "#"}],
"optional" : true
},
"minimum" : {
"type" : "number",
"optional" : true
},
"maximum" : {
"type" : "number",
"optional" : true
},
"minimumCanEqual" : {
"type" : "boolean",
"optional" : true,
"requires" : "minimum",
"default" : true
},
"maximumCanEqual" : {
"type" : "boolean",
"optional" : true,
"requires" : "maximum",
"default" : true
},
"minItems" : {
"type" : "integer",
"optional" : true,
"minimum" : 0,
"default" : 0
},
"maxItems" : {
"type" : "integer",
"optional" : true,
"minimum" : 0
},
"uniqueItems" : {
"type" : "boolean",
"optional" : true,
"default" : false
},
"pattern" : {
"type" : "string",
"optional" : true,
"format" : "regex"
},
"minLength" : {
"type" : "integer",
"optional" : true,
"minimum" : 0,
"default" : 0
},
"maxLength" : {
"type" : "integer",
"optional" : true
},
"enum" : {
"type" : "array",
"optional" : true,
"minItems" : 1,
"uniqueItems" : true
},
"title" : {
"type" : "string",
"optional" : true
},
"description" : {
"type" : "string",
"optional" : true
},
"format" : {
"type" : "string",
"optional" : true
},
"contentEncoding" : {
"type" : "string",
"optional" : true
},
"default" : {
"type" : "any",
"optional" : true
},
"divisibleBy" : {
"type" : "number",
"minimum" : 0,
"minimumCanEqual" : false,
"optional" : true,
"default" : 1
},
"disallow" : {
"type" : ["string", "array"],
"items" : {"type" : "string"},
"optional" : true,
"uniqueItems" : true
},
"extends" : {
"type" : [{"$ref" : "#"}, "array"],
"items" : {"$ref" : "#"},
"optional" : true,
"default" : {}
}
},
"optional" : true,
"default" : {}
}

20
node_modules/json-schema/draft-03/examples/address generated vendored Normal file
View file

@ -0,0 +1,20 @@
{
"description" : "An Address following the convention of http://microformats.org/wiki/hcard",
"type" : "object",
"properties" : {
"post-office-box" : { "type" : "string" },
"extended-address" : { "type" : "string" },
"street-address" : { "type":"string" },
"locality" : { "type" : "string", "required" : true },
"region" : { "type" : "string", "required" : true },
"postal-code" : { "type" : "string" },
"country-name" : { "type" : "string", "required" : true }
},
"dependencies" : {
"post-office-box" : "street-address",
"extended-address" : "street-address",
"street-address" : "region",
"locality" : "region",
"region" : "country-name"
}
}

53
node_modules/json-schema/draft-03/examples/calendar generated vendored Normal file
View file

@ -0,0 +1,53 @@
{
"description" : "A representation of an event",
"type" : "object",
"properties" : {
"dtstart" : {
"format" : "date-time",
"type" : "string",
"description" : "Event starting time",
"required":true
},
"summary" : {
"type":"string",
"required":true
},
"location" : {
"type" : "string"
},
"url" : {
"type" : "string",
"format" : "url"
},
"dtend" : {
"format" : "date-time",
"type" : "string",
"description" : "Event ending time"
},
"duration" : {
"format" : "date",
"type" : "string",
"description" : "Event duration"
},
"rdate" : {
"format" : "date-time",
"type" : "string",
"description" : "Recurrence date"
},
"rrule" : {
"type" : "string",
"description" : "Recurrence rule"
},
"category" : {
"type" : "string"
},
"description" : {
"type" : "string"
},
"geo" : { "$ref" : "http://json-schema.org/draft-03/geo" }
}
}

105
node_modules/json-schema/draft-03/examples/card generated vendored Normal file
View file

@ -0,0 +1,105 @@
{
"description":"A representation of a person, company, organization, or place",
"type":"object",
"properties":{
"fn":{
"description":"Formatted Name",
"type":"string"
},
"familyName":{
"type":"string",
"required":true
},
"givenName":{
"type":"string",
"required":true
},
"additionalName":{
"type":"array",
"items":{
"type":"string"
}
},
"honorificPrefix":{
"type":"array",
"items":{
"type":"string"
}
},
"honorificSuffix":{
"type":"array",
"items":{
"type":"string"
}
},
"nickname":{
"type":"string"
},
"url":{
"type":"string",
"format":"url"
},
"email":{
"type":"object",
"properties":{
"type":{
"type":"string"
},
"value":{
"type":"string",
"format":"email"
}
}
},
"tel":{
"type":"object",
"properties":{
"type":{
"type":"string"
},
"value":{
"type":"string",
"format":"phone"
}
}
},
"adr":{"$ref" : "http://json-schema.org/address"},
"geo":{"$ref" : "http://json-schema.org/geo"},
"tz":{
"type":"string"
},
"photo":{
"format":"image",
"type":"string"
},
"logo":{
"format":"image",
"type":"string"
},
"sound":{
"format":"attachment",
"type":"string"
},
"bday":{
"type":"string",
"format":"date"
},
"title":{
"type":"string"
},
"role":{
"type":"string"
},
"org":{
"type":"object",
"properties":{
"organizationName":{
"type":"string"
},
"organizationUnit":{
"type":"string"
}
}
}
}
}

8
node_modules/json-schema/draft-03/examples/geo generated vendored Normal file
View file

@ -0,0 +1,8 @@
{
"description" : "A geographical coordinate",
"type" : "object",
"properties" : {
"latitude" : { "type" : "number" },
"longitude" : { "type" : "number" }
}
}

23
node_modules/json-schema/draft-03/examples/interfaces generated vendored Normal file
View file

@ -0,0 +1,23 @@
{
"extends":"http://json-schema.org/hyper-schema",
"description":"A schema for schema interface definitions that describe programmatic class structures using JSON schema syntax",
"properties":{
"methods":{
"type":"object",
"description":"This defines the set of methods available to the class instances",
"additionalProperties":{
"type":"object",
"description":"The definition of the method",
"properties":{
"parameters":{
"type":"array",
"description":"The set of parameters that should be passed to the method when it is called",
"items":{"$ref":"#"},
"required": true
},
"returns":{"$ref":"#"}
}
}
}
}
}

60
node_modules/json-schema/draft-03/hyper-schema generated vendored Normal file
View file

@ -0,0 +1,60 @@
{
"$schema" : "http://json-schema.org/draft-03/hyper-schema#",
"extends" : {"$ref" : "http://json-schema.org/draft-03/schema#"},
"id" : "http://json-schema.org/draft-03/hyper-schema#",
"properties" : {
"links" : {
"type" : "array",
"items" : {"$ref" : "http://json-schema.org/draft-03/links#"}
},
"fragmentResolution" : {
"type" : "string",
"default" : "slash-delimited"
},
"root" : {
"type" : "boolean",
"default" : false
},
"readonly" : {
"type" : "boolean",
"default" : false
},
"contentEncoding" : {
"type" : "string"
},
"pathStart" : {
"type" : "string",
"format" : "uri"
},
"mediaType" : {
"type" : "string",
"format" : "media-type"
}
},
"links" : [
{
"href" : "{id}",
"rel" : "self"
},
{
"href" : "{$ref}",
"rel" : "full"
},
{
"href" : "{$schema}",
"rel" : "describedby"
}
],
"fragmentResolution" : "slash-delimited"
}

26
node_modules/json-schema/draft-03/json-ref generated vendored Normal file
View file

@ -0,0 +1,26 @@
{
"$schema" : "http://json-schema.org/draft-03/hyper-schema#",
"id" : "http://json-schema.org/draft-03/json-ref#",
"additionalItems" : {"$ref" : "#"},
"additionalProperties" : {"$ref" : "#"},
"links" : [
{
"href" : "{id}",
"rel" : "self"
},
{
"href" : "{$ref}",
"rel" : "full"
},
{
"href" : "{$schema}",
"rel" : "describedby"
}
],
"fragmentResolution" : "dot-delimited"
}

35
node_modules/json-schema/draft-03/links generated vendored Normal file
View file

@ -0,0 +1,35 @@
{
"$schema" : "http://json-schema.org/draft-03/hyper-schema#",
"id" : "http://json-schema.org/draft-03/links#",
"type" : "object",
"properties" : {
"href" : {
"type" : "string",
"required" : true,
"format" : "link-description-object-template"
},
"rel" : {
"type" : "string",
"required" : true
},
"targetSchema" : {"$ref" : "http://json-schema.org/draft-03/hyper-schema#"},
"method" : {
"type" : "string",
"default" : "GET"
},
"enctype" : {
"type" : "string",
"requires" : "method"
},
"properties" : {
"type" : "object",
"additionalProperties" : {"$ref" : "http://json-schema.org/draft-03/hyper-schema#"}
}
}
}

174
node_modules/json-schema/draft-03/schema generated vendored Normal file
View file

@ -0,0 +1,174 @@
{
"$schema" : "http://json-schema.org/draft-03/schema#",
"id" : "http://json-schema.org/draft-03/schema#",
"type" : "object",
"properties" : {
"type" : {
"type" : ["string", "array"],
"items" : {
"type" : ["string", {"$ref" : "#"}]
},
"uniqueItems" : true,
"default" : "any"
},
"properties" : {
"type" : "object",
"additionalProperties" : {"$ref" : "#"},
"default" : {}
},
"patternProperties" : {
"type" : "object",
"additionalProperties" : {"$ref" : "#"},
"default" : {}
},
"additionalProperties" : {
"type" : [{"$ref" : "#"}, "boolean"],
"default" : {}
},
"items" : {
"type" : [{"$ref" : "#"}, "array"],
"items" : {"$ref" : "#"},
"default" : {}
},
"additionalItems" : {
"type" : [{"$ref" : "#"}, "boolean"],
"default" : {}
},
"required" : {
"type" : "boolean",
"default" : false
},
"dependencies" : {
"type" : "object",
"additionalProperties" : {
"type" : ["string", "array", {"$ref" : "#"}],
"items" : {
"type" : "string"
}
},
"default" : {}
},
"minimum" : {
"type" : "number"
},
"maximum" : {
"type" : "number"
},
"exclusiveMinimum" : {
"type" : "boolean",
"default" : false
},
"exclusiveMaximum" : {
"type" : "boolean",
"default" : false
},
"minItems" : {
"type" : "integer",
"minimum" : 0,
"default" : 0
},
"maxItems" : {
"type" : "integer",
"minimum" : 0
},
"uniqueItems" : {
"type" : "boolean",
"default" : false
},
"pattern" : {
"type" : "string",
"format" : "regex"
},
"minLength" : {
"type" : "integer",
"minimum" : 0,
"default" : 0
},
"maxLength" : {
"type" : "integer"
},
"enum" : {
"type" : "array",
"minItems" : 1,
"uniqueItems" : true
},
"default" : {
"type" : "any"
},
"title" : {
"type" : "string"
},
"description" : {
"type" : "string"
},
"format" : {
"type" : "string"
},
"divisibleBy" : {
"type" : "number",
"minimum" : 0,
"exclusiveMinimum" : true,
"default" : 1
},
"disallow" : {
"type" : ["string", "array"],
"items" : {
"type" : ["string", {"$ref" : "#"}]
},
"uniqueItems" : true
},
"extends" : {
"type" : [{"$ref" : "#"}, "array"],
"items" : {"$ref" : "#"},
"default" : {}
},
"id" : {
"type" : "string",
"format" : "uri"
},
"$ref" : {
"type" : "string",
"format" : "uri"
},
"$schema" : {
"type" : "string",
"format" : "uri"
}
},
"dependencies" : {
"exclusiveMinimum" : "minimum",
"exclusiveMaximum" : "maximum"
},
"default" : {}
}

60
node_modules/json-schema/draft-04/hyper-schema generated vendored Normal file
View file

@ -0,0 +1,60 @@
{
"$schema" : "http://json-schema.org/draft-04/hyper-schema#",
"extends" : {"$ref" : "http://json-schema.org/draft-04/schema#"},
"id" : "http://json-schema.org/draft-04/hyper-schema#",
"properties" : {
"links" : {
"type" : "array",
"items" : {"$ref" : "http://json-schema.org/draft-04/links#"}
},
"fragmentResolution" : {
"type" : "string",
"default" : "json-pointer"
},
"root" : {
"type" : "boolean",
"default" : false
},
"readonly" : {
"type" : "boolean",
"default" : false
},
"contentEncoding" : {
"type" : "string"
},
"pathStart" : {
"type" : "string",
"format" : "uri"
},
"mediaType" : {
"type" : "string",
"format" : "media-type"
}
},
"links" : [
{
"href" : "{id}",
"rel" : "self"
},
{
"href" : "{$ref}",
"rel" : "full"
},
{
"href" : "{$schema}",
"rel" : "describedby"
}
],
"fragmentResolution" : "json-pointer"
}

41
node_modules/json-schema/draft-04/links generated vendored Normal file
View file

@ -0,0 +1,41 @@
{
"$schema" : "http://json-schema.org/draft-04/hyper-schema#",
"id" : "http://json-schema.org/draft-04/links#",
"type" : "object",
"properties" : {
"rel" : {
"type" : "string"
},
"href" : {
"type" : "string"
},
"template" : {
"type" : "string"
},
"targetSchema" : {"$ref" : "http://json-schema.org/draft-04/hyper-schema#"},
"method" : {
"type" : "string",
"default" : "GET"
},
"enctype" : {
"type" : "string"
},
"properties" : {
"type" : "object",
"additionalProperties" : {"$ref" : "http://json-schema.org/draft-04/hyper-schema#"}
}
},
"required" : ["rel", "href"],
"dependencies" : {
"enctype" : "method"
}
}

189
node_modules/json-schema/draft-04/schema generated vendored Normal file
View file

@ -0,0 +1,189 @@
{
"$schema" : "http://json-schema.org/draft-04/schema#",
"id" : "http://json-schema.org/draft-04/schema#",
"type" : "object",
"properties" : {
"type" : {
"type" : [
{
"id" : "#simple-type",
"type" : "string",
"enum" : ["object", "array", "string", "number", "boolean", "null", "any"]
},
"array"
],
"items" : {
"type" : [
{"$ref" : "#simple-type"},
{"$ref" : "#"}
]
},
"uniqueItems" : true,
"default" : "any"
},
"disallow" : {
"type" : ["string", "array"],
"items" : {
"type" : ["string", {"$ref" : "#"}]
},
"uniqueItems" : true
},
"extends" : {
"type" : [{"$ref" : "#"}, "array"],
"items" : {"$ref" : "#"},
"default" : {}
},
"enum" : {
"type" : "array",
"minItems" : 1,
"uniqueItems" : true
},
"minimum" : {
"type" : "number"
},
"maximum" : {
"type" : "number"
},
"exclusiveMinimum" : {
"type" : "boolean",
"default" : false
},
"exclusiveMaximum" : {
"type" : "boolean",
"default" : false
},
"divisibleBy" : {
"type" : "number",
"minimum" : 0,
"exclusiveMinimum" : true,
"default" : 1
},
"minLength" : {
"type" : "integer",
"minimum" : 0,
"default" : 0
},
"maxLength" : {
"type" : "integer"
},
"pattern" : {
"type" : "string"
},
"items" : {
"type" : [{"$ref" : "#"}, "array"],
"items" : {"$ref" : "#"},
"default" : {}
},
"additionalItems" : {
"type" : [{"$ref" : "#"}, "boolean"],
"default" : {}
},
"minItems" : {
"type" : "integer",
"minimum" : 0,
"default" : 0
},
"maxItems" : {
"type" : "integer",
"minimum" : 0
},
"uniqueItems" : {
"type" : "boolean",
"default" : false
},
"properties" : {
"type" : "object",
"additionalProperties" : {"$ref" : "#"},
"default" : {}
},
"patternProperties" : {
"type" : "object",
"additionalProperties" : {"$ref" : "#"},
"default" : {}
},
"additionalProperties" : {
"type" : [{"$ref" : "#"}, "boolean"],
"default" : {}
},
"minProperties" : {
"type" : "integer",
"minimum" : 0,
"default" : 0
},
"maxProperties" : {
"type" : "integer",
"minimum" : 0
},
"required" : {
"type" : "array",
"items" : {
"type" : "string"
}
},
"dependencies" : {
"type" : "object",
"additionalProperties" : {
"type" : ["string", "array", {"$ref" : "#"}],
"items" : {
"type" : "string"
}
},
"default" : {}
},
"id" : {
"type" : "string"
},
"$ref" : {
"type" : "string"
},
"$schema" : {
"type" : "string"
},
"title" : {
"type" : "string"
},
"description" : {
"type" : "string"
},
"default" : {
"type" : "any"
}
},
"dependencies" : {
"exclusiveMinimum" : "minimum",
"exclusiveMaximum" : "maximum"
},
"default" : {}
}

1120
node_modules/json-schema/draft-zyp-json-schema-03.xml generated vendored Normal file

File diff suppressed because it is too large Load diff

1072
node_modules/json-schema/draft-zyp-json-schema-04.xml generated vendored Normal file

File diff suppressed because it is too large Load diff

66
node_modules/json-schema/lib/links.js generated vendored Normal file
View file

@ -0,0 +1,66 @@
/**
* JSON Schema link handler
* Copyright (c) 2007 Kris Zyp SitePen (www.sitepen.com)
* Licensed under the MIT (MIT-LICENSE.txt) license.
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define([], function () {
return factory();
});
} else if (typeof module === 'object' && module.exports) {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
module.exports = factory();
} else {
// Browser globals
root.jsonSchemaLinks = factory();
}
}(this, function () {// setup primitive classes to be JSON Schema types
var exports = {};
exports.cacheLinks = true;
exports.getLink = function(relation, instance, schema){
// gets the URI of the link for the given relation based on the instance and schema
// for example:
// getLink(
// "brother",
// {"brother_id":33},
// {links:[{rel:"brother", href:"Brother/{brother_id}"}]}) ->
// "Brother/33"
var links = schema.__linkTemplates;
if(!links){
links = {};
var schemaLinks = schema.links;
if(schemaLinks && schemaLinks instanceof Array){
schemaLinks.forEach(function(link){
/* // TODO: allow for multiple same-name relations
if(links[link.rel]){
if(!(links[link.rel] instanceof Array)){
links[link.rel] = [links[link.rel]];
}
}*/
links[link.rel] = link.href;
});
}
if(exports.cacheLinks){
schema.__linkTemplates = links;
}
}
var linkTemplate = links[relation];
return linkTemplate && exports.substitute(linkTemplate, instance);
};
exports.substitute = function(linkTemplate, instance){
return linkTemplate.replace(/\{([^\}]*)\}/g, function(t, property){
var value = instance[decodeURIComponent(property)];
if(value instanceof Array){
// the value is an array, it should produce a URI like /Table/(4,5,8) and store.get() should handle that as an array of values
return '(' + value.join(',') + ')';
}
return value;
});
};
return exports;
}));

273
node_modules/json-schema/lib/validate.js generated vendored Normal file
View file

@ -0,0 +1,273 @@
/**
* JSONSchema Validator - Validates JavaScript objects using JSON Schemas
* (http://www.json.com/json-schema-proposal/)
*
* Copyright (c) 2007 Kris Zyp SitePen (www.sitepen.com)
* Licensed under the MIT (MIT-LICENSE.txt) license.
To use the validator call the validate function with an instance object and an optional schema object.
If a schema is provided, it will be used to validate. If the instance object refers to a schema (self-validating),
that schema will be used to validate and the schema parameter is not necessary (if both exist,
both validations will occur).
The validate method will return an array of validation errors. If there are no errors, then an
empty list will be returned. A validation error will have two properties:
"property" which indicates which property had the error
"message" which indicates what the error was
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define([], function () {
return factory();
});
} else if (typeof module === 'object' && module.exports) {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
module.exports = factory();
} else {
// Browser globals
root.jsonSchema = factory();
}
}(this, function () {// setup primitive classes to be JSON Schema types
var exports = validate
exports.Integer = {type:"integer"};
var primitiveConstructors = {
String: String,
Boolean: Boolean,
Number: Number,
Object: Object,
Array: Array,
Date: Date
}
exports.validate = validate;
function validate(/*Any*/instance,/*Object*/schema) {
// Summary:
// To use the validator call JSONSchema.validate with an instance object and an optional schema object.
// If a schema is provided, it will be used to validate. If the instance object refers to a schema (self-validating),
// that schema will be used to validate and the schema parameter is not necessary (if both exist,
// both validations will occur).
// The validate method will return an object with two properties:
// valid: A boolean indicating if the instance is valid by the schema
// errors: An array of validation errors. If there are no errors, then an
// empty list will be returned. A validation error will have two properties:
// property: which indicates which property had the error
// message: which indicates what the error was
//
return validate(instance, schema, {changing: false});//, coerce: false, existingOnly: false});
};
exports.checkPropertyChange = function(/*Any*/value,/*Object*/schema, /*String*/property) {
// Summary:
// The checkPropertyChange method will check to see if an value can legally be in property with the given schema
// This is slightly different than the validate method in that it will fail if the schema is readonly and it will
// not check for self-validation, it is assumed that the passed in value is already internally valid.
// The checkPropertyChange method will return the same object type as validate, see JSONSchema.validate for
// information.
//
return validate(value, schema, {changing: property || "property"});
};
var validate = exports._validate = function(/*Any*/instance,/*Object*/schema,/*Object*/options) {
if (!options) options = {};
var _changing = options.changing;
function getType(schema){
return schema.type || (primitiveConstructors[schema.name] == schema && schema.name.toLowerCase());
}
var errors = [];
// validate a value against a property definition
function checkProp(value, schema, path,i){
var l;
path += path ? typeof i == 'number' ? '[' + i + ']' : typeof i == 'undefined' ? '' : '.' + i : i;
function addError(message){
errors.push({property:path,message:message});
}
if((typeof schema != 'object' || schema instanceof Array) && (path || typeof schema != 'function') && !(schema && getType(schema))){
if(typeof schema == 'function'){
if(!(value instanceof schema)){
addError("is not an instance of the class/constructor " + schema.name);
}
}else if(schema){
addError("Invalid schema/property definition " + schema);
}
return null;
}
if(_changing && schema.readonly){
addError("is a readonly field, it can not be changed");
}
if(schema['extends']){ // if it extends another schema, it must pass that schema as well
checkProp(value,schema['extends'],path,i);
}
// validate a value against a type definition
function checkType(type,value){
if(type){
if(typeof type == 'string' && type != 'any' &&
(type == 'null' ? value !== null : typeof value != type) &&
!(value instanceof Array && type == 'array') &&
!(value instanceof Date && type == 'date') &&
!(type == 'integer' && value%1===0)){
return [{property:path,message:(typeof value) + " value found, but a " + type + " is required"}];
}
if(type instanceof Array){
var unionErrors=[];
for(var j = 0; j < type.length; j++){ // a union type
if(!(unionErrors=checkType(type[j],value)).length){
break;
}
}
if(unionErrors.length){
return unionErrors;
}
}else if(typeof type == 'object'){
var priorErrors = errors;
errors = [];
checkProp(value,type,path);
var theseErrors = errors;
errors = priorErrors;
return theseErrors;
}
}
return [];
}
if(value === undefined){
if(schema.required){
addError("is missing and it is required");
}
}else{
errors = errors.concat(checkType(getType(schema),value));
if(schema.disallow && !checkType(schema.disallow,value).length){
addError(" disallowed value was matched");
}
if(value !== null){
if(value instanceof Array){
if(schema.items){
var itemsIsArray = schema.items instanceof Array;
var propDef = schema.items;
for (i = 0, l = value.length; i < l; i += 1) {
if (itemsIsArray)
propDef = schema.items[i];
if (options.coerce)
value[i] = options.coerce(value[i], propDef);
errors.concat(checkProp(value[i],propDef,path,i));
}
}
if(schema.minItems && value.length < schema.minItems){
addError("There must be a minimum of " + schema.minItems + " in the array");
}
if(schema.maxItems && value.length > schema.maxItems){
addError("There must be a maximum of " + schema.maxItems + " in the array");
}
}else if(schema.properties || schema.additionalProperties){
errors.concat(checkObj(value, schema.properties, path, schema.additionalProperties));
}
if(schema.pattern && typeof value == 'string' && !value.match(schema.pattern)){
addError("does not match the regex pattern " + schema.pattern);
}
if(schema.maxLength && typeof value == 'string' && value.length > schema.maxLength){
addError("may only be " + schema.maxLength + " characters long");
}
if(schema.minLength && typeof value == 'string' && value.length < schema.minLength){
addError("must be at least " + schema.minLength + " characters long");
}
if(typeof schema.minimum !== undefined && typeof value == typeof schema.minimum &&
schema.minimum > value){
addError("must have a minimum value of " + schema.minimum);
}
if(typeof schema.maximum !== undefined && typeof value == typeof schema.maximum &&
schema.maximum < value){
addError("must have a maximum value of " + schema.maximum);
}
if(schema['enum']){
var enumer = schema['enum'];
l = enumer.length;
var found;
for(var j = 0; j < l; j++){
if(enumer[j]===value){
found=1;
break;
}
}
if(!found){
addError("does not have a value in the enumeration " + enumer.join(", "));
}
}
if(typeof schema.maxDecimal == 'number' &&
(value.toString().match(new RegExp("\\.[0-9]{" + (schema.maxDecimal + 1) + ",}")))){
addError("may only have " + schema.maxDecimal + " digits of decimal places");
}
}
}
return null;
}
// validate an object against a schema
function checkObj(instance,objTypeDef,path,additionalProp){
if(typeof objTypeDef =='object'){
if(typeof instance != 'object' || instance instanceof Array){
errors.push({property:path,message:"an object is required"});
}
for(var i in objTypeDef){
if(objTypeDef.hasOwnProperty(i)){
var value = instance[i];
// skip _not_ specified properties
if (value === undefined && options.existingOnly) continue;
var propDef = objTypeDef[i];
// set default
if(value === undefined && propDef["default"]){
value = instance[i] = propDef["default"];
}
if(options.coerce && i in instance){
value = instance[i] = options.coerce(value, propDef);
}
checkProp(value,propDef,path,i);
}
}
}
for(i in instance){
if(instance.hasOwnProperty(i) && !(i.charAt(0) == '_' && i.charAt(1) == '_') && objTypeDef && !objTypeDef[i] && additionalProp===false){
if (options.filter) {
delete instance[i];
continue;
} else {
errors.push({property:path,message:(typeof value) + "The property " + i +
" is not defined in the schema and the schema does not allow additional properties"});
}
}
var requires = objTypeDef && objTypeDef[i] && objTypeDef[i].requires;
if(requires && !(requires in instance)){
errors.push({property:path,message:"the presence of the property " + i + " requires that " + requires + " also be present"});
}
value = instance[i];
if(additionalProp && (!(objTypeDef && typeof objTypeDef == 'object') || !(i in objTypeDef))){
if(options.coerce){
value = instance[i] = options.coerce(value, additionalProp);
}
checkProp(value,additionalProp,path,i);
}
if(!_changing && value && value.$schema){
errors = errors.concat(checkProp(value,value.$schema,path,i));
}
}
return errors;
}
if(schema){
checkProp(instance,schema,'',_changing || '');
}
if(!_changing && instance && instance.$schema){
checkProp(instance,instance.$schema,'','');
}
return {valid:!errors.length,errors:errors};
};
exports.mustBeValid = function(result){
// summary:
// This checks to ensure that the result is valid and will throw an appropriate error message if it is not
// result: the result returned from checkPropertyChange or validate
if(!result.valid){
throw new TypeError(result.errors.map(function(error){return "for property " + error.property + ': ' + error.message;}).join(", \n"));
}
}
return exports;
}));

75
node_modules/json-schema/package.json generated vendored Normal file
View file

@ -0,0 +1,75 @@
{
"_args": [
[
"json-schema@0.2.3",
"/Users/eric/repos/actions/setup-node"
]
],
"_development": true,
"_from": "json-schema@0.2.3",
"_id": "json-schema@0.2.3",
"_inBundle": false,
"_integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=",
"_location": "/json-schema",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "json-schema@0.2.3",
"name": "json-schema",
"escapedName": "json-schema",
"rawSpec": "0.2.3",
"saveSpec": null,
"fetchSpec": "0.2.3"
},
"_requiredBy": [
"/jsprim"
],
"_resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
"_spec": "0.2.3",
"_where": "/Users/eric/repos/actions/setup-node",
"author": {
"name": "Kris Zyp"
},
"bugs": {
"url": "https://github.com/kriszyp/json-schema/issues"
},
"description": "JSON Schema validation and specifications",
"devDependencies": {
"vows": "*"
},
"directories": {
"lib": "./lib"
},
"homepage": "https://github.com/kriszyp/json-schema#readme",
"keywords": [
"json",
"schema"
],
"licenses": [
{
"type": "AFLv2.1",
"url": "http://trac.dojotoolkit.org/browser/dojo/trunk/LICENSE#L43"
},
{
"type": "BSD",
"url": "http://trac.dojotoolkit.org/browser/dojo/trunk/LICENSE#L13"
}
],
"main": "./lib/validate.js",
"maintainers": [
{
"name": "Kris Zyp",
"email": "kriszyp@gmail.com"
}
],
"name": "json-schema",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/kriszyp/json-schema.git"
},
"scripts": {
"test": "echo TESTS DISABLED vows --spec test/*.js"
},
"version": "0.2.3"
}

95
node_modules/json-schema/test/tests.js generated vendored Normal file
View file

@ -0,0 +1,95 @@
var assert = require('assert');
var vows = require('vows');
var path = require('path');
var fs = require('fs');
var validate = require('../lib/validate').validate;
var revision = 'draft-03';
var schemaRoot = path.join(__dirname, '..', revision);
var schemaNames = ['schema', 'hyper-schema', 'links', 'json-ref' ];
var schemas = {};
schemaNames.forEach(function(name) {
var file = path.join(schemaRoot, name);
schemas[name] = loadSchema(file);
});
schemaNames.forEach(function(name) {
var s, n = name+'-nsd', f = path.join(schemaRoot, name);
schemas[n] = loadSchema(f);
s = schemas[n];
delete s['$schema'];
});
function loadSchema(path) {
var data = fs.readFileSync(path, 'utf-8');
var schema = JSON.parse(data);
return schema;
}
function resultIsValid() {
return function(result) {
assert.isObject(result);
//assert.isBoolean(result.valid);
assert.equal(typeof(result.valid), 'boolean');
assert.isArray(result.errors);
for (var i = 0; i < result.errors.length; i++) {
assert.notEqual(result.errors[i], null, 'errors['+i+'] is null');
}
}
}
function assertValidates(doc, schema) {
var context = {};
context[': validate('+doc+', '+schema+')'] = {
topic: validate(schemas[doc], schemas[schema]),
'returns valid result': resultIsValid(),
'with valid=true': function(result) { assert.equal(result.valid, true); },
'and no errors': function(result) {
// XXX work-around for bug in vows: [null] chokes it
if (result.errors[0] == null) assert.fail('(errors contains null)');
assert.length(result.errors, 0);
}
};
return context;
}
function assertSelfValidates(doc) {
var context = {};
context[': validate('+doc+')'] = {
topic: validate(schemas[doc]),
'returns valid result': resultIsValid(),
'with valid=true': function(result) { assert.equal(result.valid, true); },
'and no errors': function(result) { assert.length(result.errors, 0); }
};
return context;
}
var suite = vows.describe('JSON Schema').addBatch({
'Core-NSD self-validates': assertSelfValidates('schema-nsd'),
'Core-NSD/Core-NSD': assertValidates('schema-nsd', 'schema-nsd'),
'Core-NSD/Core': assertValidates('schema-nsd', 'schema'),
'Core self-validates': assertSelfValidates('schema'),
'Core/Core': assertValidates('schema', 'schema'),
'Hyper-NSD self-validates': assertSelfValidates('hyper-schema-nsd'),
'Hyper self-validates': assertSelfValidates('hyper-schema'),
'Hyper/Hyper': assertValidates('hyper-schema', 'hyper-schema'),
'Hyper/Core': assertValidates('hyper-schema', 'schema'),
'Links-NSD self-validates': assertSelfValidates('links-nsd'),
'Links self-validates': assertSelfValidates('links'),
'Links/Hyper': assertValidates('links', 'hyper-schema'),
'Links/Core': assertValidates('links', 'schema'),
'Json-Ref self-validates': assertSelfValidates('json-ref'),
'Json-Ref/Hyper': assertValidates('json-ref', 'hyper-schema'),
'Json-Ref/Core': assertValidates('json-ref', 'schema')
}).export(module);