summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2013-05-12 23:48:50 -0400
committerJulian Berman <Julian@GrayVines.com>2013-05-12 23:48:50 -0400
commitcaca66735074820133ec754cb834aa38628a9b35 (patch)
treeffd628ad040ba74ba5560f71c4ffc660dfcefcc2
parentd2480c000e344c2ef9fbd56b816cdf5fa5818477 (diff)
downloadjsonschema-caca66735074820133ec754cb834aa38628a9b35.tar.gz
Pretty JSON.
-rw-r--r--jsonschema/schemas/draft3.json202
-rw-r--r--jsonschema/schemas/draft4.json222
2 files changed, 422 insertions, 2 deletions
diff --git a/jsonschema/schemas/draft3.json b/jsonschema/schemas/draft3.json
index 9c9fee8..5bcefe3 100644
--- a/jsonschema/schemas/draft3.json
+++ b/jsonschema/schemas/draft3.json
@@ -1 +1,201 @@
-{"$schema": "http://json-schema.org/draft-03/schema#", "dependencies": {"exclusiveMaximum": "maximum", "exclusiveMinimum": "minimum"}, "type": "object", "id": "http://json-schema.org/draft-03/schema#", "properties": {"maxDecimal": {"minimum": 0, "type": "number"}, "minimum": {"type": "number"}, "maxItems": {"minimum": 0, "type": "integer"}, "$schema": {"type": "string", "format": "uri"}, "exclusiveMinimum": {"default": false, "type": "boolean"}, "id": {"type": "string", "format": "uri"}, "$ref": {"type": "string", "format": "uri"}, "exclusiveMaximum": {"default": false, "type": "boolean"}, "title": {"type": "string"}, "pattern": {"type": "string", "format": "regex"}, "patternProperties": {"additionalProperties": {"$ref": "#"}, "default": {}, "type": "object"}, "extends": {"default": {}, "items": {"$ref": "#"}, "type": [{"$ref": "#"}, "array"]}, "type": {"uniqueItems": true, "items": {"type": ["string", {"$ref": "#"}]}, "default": "any", "type": ["string", "array"]}, "description": {"type": "string"}, "format": {"type": "string"}, "minLength": {"default": 0, "minimum": 0, "type": "integer"}, "enum": {"minItems": 1, "uniqueItems": true, "type": "array"}, "disallow": {"uniqueItems": true, "items": {"type": ["string", {"$ref": "#"}]}, "type": ["string", "array"]}, "divisibleBy": {"default": 1, "exclusiveMinimum": true, "minimum": 0, "type": "number"}, "dependencies": {"additionalProperties": {"items": {"type": "string"}, "type": ["string", "array", {"$ref": "#"}]}, "default": {}, "type": ["string", "array", "object"]}, "maxLength": {"type": "integer"}, "uniqueItems": {"default": false, "type": "boolean"}, "properties": {"additionalProperties": {"type": "object", "$ref": "#"}, "default": {}, "type": "object"}, "additionalItems": {"default": {}, "type": [{"$ref": "#"}, "boolean"]}, "default": {"type": "any"}, "items": {"default": {}, "items": {"$ref": "#"}, "type": [{"$ref": "#"}, "array"]}, "required": {"default": false, "type": "boolean"}, "maximum": {"type": "number"}, "minItems": {"default": 0, "minimum": 0, "type": "integer"}, "additionalProperties": {"default": {}, "type": [{"$ref": "#"}, "boolean"]}}} \ No newline at end of file
+{
+ "$schema": "http://json-schema.org/draft-03/schema#",
+ "dependencies": {
+ "exclusiveMaximum": "maximum",
+ "exclusiveMinimum": "minimum"
+ },
+ "id": "http://json-schema.org/draft-03/schema#",
+ "properties": {
+ "$ref": {
+ "format": "uri",
+ "type": "string"
+ },
+ "$schema": {
+ "format": "uri",
+ "type": "string"
+ },
+ "additionalItems": {
+ "default": {},
+ "type": [
+ {
+ "$ref": "#"
+ },
+ "boolean"
+ ]
+ },
+ "additionalProperties": {
+ "default": {},
+ "type": [
+ {
+ "$ref": "#"
+ },
+ "boolean"
+ ]
+ },
+ "default": {
+ "type": "any"
+ },
+ "dependencies": {
+ "additionalProperties": {
+ "items": {
+ "type": "string"
+ },
+ "type": [
+ "string",
+ "array",
+ {
+ "$ref": "#"
+ }
+ ]
+ },
+ "default": {},
+ "type": [
+ "string",
+ "array",
+ "object"
+ ]
+ },
+ "description": {
+ "type": "string"
+ },
+ "disallow": {
+ "items": {
+ "type": [
+ "string",
+ {
+ "$ref": "#"
+ }
+ ]
+ },
+ "type": [
+ "string",
+ "array"
+ ],
+ "uniqueItems": true
+ },
+ "divisibleBy": {
+ "default": 1,
+ "exclusiveMinimum": true,
+ "minimum": 0,
+ "type": "number"
+ },
+ "enum": {
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "exclusiveMaximum": {
+ "default": false,
+ "type": "boolean"
+ },
+ "exclusiveMinimum": {
+ "default": false,
+ "type": "boolean"
+ },
+ "extends": {
+ "default": {},
+ "items": {
+ "$ref": "#"
+ },
+ "type": [
+ {
+ "$ref": "#"
+ },
+ "array"
+ ]
+ },
+ "format": {
+ "type": "string"
+ },
+ "id": {
+ "format": "uri",
+ "type": "string"
+ },
+ "items": {
+ "default": {},
+ "items": {
+ "$ref": "#"
+ },
+ "type": [
+ {
+ "$ref": "#"
+ },
+ "array"
+ ]
+ },
+ "maxDecimal": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "maxItems": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "maxLength": {
+ "type": "integer"
+ },
+ "maximum": {
+ "type": "number"
+ },
+ "minItems": {
+ "default": 0,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "minLength": {
+ "default": 0,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "minimum": {
+ "type": "number"
+ },
+ "pattern": {
+ "format": "regex",
+ "type": "string"
+ },
+ "patternProperties": {
+ "additionalProperties": {
+ "$ref": "#"
+ },
+ "default": {},
+ "type": "object"
+ },
+ "properties": {
+ "additionalProperties": {
+ "$ref": "#",
+ "type": "object"
+ },
+ "default": {},
+ "type": "object"
+ },
+ "required": {
+ "default": false,
+ "type": "boolean"
+ },
+ "title": {
+ "type": "string"
+ },
+ "type": {
+ "default": "any",
+ "items": {
+ "type": [
+ "string",
+ {
+ "$ref": "#"
+ }
+ ]
+ },
+ "type": [
+ "string",
+ "array"
+ ],
+ "uniqueItems": true
+ },
+ "uniqueItems": {
+ "default": false,
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+}
diff --git a/jsonschema/schemas/draft4.json b/jsonschema/schemas/draft4.json
index 12f583e..fead5ce 100644
--- a/jsonschema/schemas/draft4.json
+++ b/jsonschema/schemas/draft4.json
@@ -1 +1,221 @@
-{"dependencies": {"exclusiveMaximum": ["maximum"], "exclusiveMinimum": ["minimum"]}, "description": "Core schema meta-schema", "default": {}, "definitions": {"simpleTypes": {"enum": ["array", "boolean", "integer", "null", "number", "object", "string"]}, "schemaArray": {"minItems": 1, "items": {"$ref": "#"}, "type": "array"}, "positiveIntegerDefault0": {"allOf": [{"$ref": "#/definitions/positiveInteger"}, {"default": 0}]}, "positiveInteger": {"minimum": 0, "type": "integer"}, "stringArray": {"minItems": 1, "items": {"type": "string"}, "uniqueItems": true, "type": "array"}}, "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "id": "http://json-schema.org/draft-04/schema#", "properties": {"description": {"type": "string"}, "allOf": {"$ref": "#/definitions/schemaArray"}, "minLength": {"$ref": "#/definitions/positiveIntegerDefault0"}, "anyOf": {"$ref": "#/definitions/schemaArray"}, "enum": {"minItems": 1, "uniqueItems": true, "type": "array"}, "additionalItems": {"default": {}, "anyOf": [{"type": "boolean"}, {"$ref": "#"}]}, "maximum": {"type": "number"}, "not": {"$ref": "#"}, "minimum": {"type": "number"}, "maxItems": {"$ref": "#/definitions/positiveInteger"}, "maxLength": {"$ref": "#/definitions/positiveInteger"}, "uniqueItems": {"default": false, "type": "boolean"}, "$schema": {"type": "string", "format": "uri"}, "exclusiveMinimum": {"default": false, "type": "boolean"}, "id": {"type": "string", "format": "uri"}, "exclusiveMaximum": {"default": false, "type": "boolean"}, "title": {"type": "string"}, "default": {}, "pattern": {"type": "string", "format": "regex"}, "required": {"$ref": "#/definitions/stringArray"}, "patternProperties": {"additionalProperties": {"$ref": "#"}, "default": {}, "type": "object"}, "multipleOf": {"exclusiveMinimum": true, "minimum": 0, "type": "number"}, "properties": {"additionalProperties": {"$ref": "#"}, "default": {}, "type": "object"}, "minItems": {"$ref": "#/definitions/positiveIntegerDefault0"}, "minProperties": {"$ref": "#/definitions/positiveIntegerDefault0"}, "dependencies": {"additionalProperties": {"anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/stringArray"}]}, "type": "object"}, "maxProperties": {"$ref": "#/definitions/positiveInteger"}, "oneOf": {"$ref": "#/definitions/schemaArray"}, "items": {"default": {}, "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}]}, "additionalProperties": {"default": {}, "anyOf": [{"type": "boolean"}, {"$ref": "#"}]}, "definitions": {"additionalProperties": {"$ref": "#"}, "default": {}, "type": "object"}, "type": {"anyOf": [{"$ref": "#/definitions/simpleTypes"}, {"minItems": 1, "items": {"$ref": "#/definitions/simpleTypes"}, "uniqueItems": true, "type": "array"}]}}} \ No newline at end of file
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "default": {},
+ "definitions": {
+ "positiveInteger": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "positiveIntegerDefault0": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/positiveInteger"
+ },
+ {
+ "default": 0
+ }
+ ]
+ },
+ "schemaArray": {
+ "items": {
+ "$ref": "#"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "simpleTypes": {
+ "enum": [
+ "array",
+ "boolean",
+ "integer",
+ "null",
+ "number",
+ "object",
+ "string"
+ ]
+ },
+ "stringArray": {
+ "items": {
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ }
+ },
+ "dependencies": {
+ "exclusiveMaximum": [
+ "maximum"
+ ],
+ "exclusiveMinimum": [
+ "minimum"
+ ]
+ },
+ "description": "Core schema meta-schema",
+ "id": "http://json-schema.org/draft-04/schema#",
+ "properties": {
+ "$schema": {
+ "format": "uri",
+ "type": "string"
+ },
+ "additionalItems": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "$ref": "#"
+ }
+ ],
+ "default": {}
+ },
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "$ref": "#"
+ }
+ ],
+ "default": {}
+ },
+ "allOf": {
+ "$ref": "#/definitions/schemaArray"
+ },
+ "anyOf": {
+ "$ref": "#/definitions/schemaArray"
+ },
+ "default": {},
+ "definitions": {
+ "additionalProperties": {
+ "$ref": "#"
+ },
+ "default": {},
+ "type": "object"
+ },
+ "dependencies": {
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "$ref": "#"
+ },
+ {
+ "$ref": "#/definitions/stringArray"
+ }
+ ]
+ },
+ "type": "object"
+ },
+ "description": {
+ "type": "string"
+ },
+ "enum": {
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "exclusiveMaximum": {
+ "default": false,
+ "type": "boolean"
+ },
+ "exclusiveMinimum": {
+ "default": false,
+ "type": "boolean"
+ },
+ "id": {
+ "format": "uri",
+ "type": "string"
+ },
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#"
+ },
+ {
+ "$ref": "#/definitions/schemaArray"
+ }
+ ],
+ "default": {}
+ },
+ "maxItems": {
+ "$ref": "#/definitions/positiveInteger"
+ },
+ "maxLength": {
+ "$ref": "#/definitions/positiveInteger"
+ },
+ "maxProperties": {
+ "$ref": "#/definitions/positiveInteger"
+ },
+ "maximum": {
+ "type": "number"
+ },
+ "minItems": {
+ "$ref": "#/definitions/positiveIntegerDefault0"
+ },
+ "minLength": {
+ "$ref": "#/definitions/positiveIntegerDefault0"
+ },
+ "minProperties": {
+ "$ref": "#/definitions/positiveIntegerDefault0"
+ },
+ "minimum": {
+ "type": "number"
+ },
+ "multipleOf": {
+ "exclusiveMinimum": true,
+ "minimum": 0,
+ "type": "number"
+ },
+ "not": {
+ "$ref": "#"
+ },
+ "oneOf": {
+ "$ref": "#/definitions/schemaArray"
+ },
+ "pattern": {
+ "format": "regex",
+ "type": "string"
+ },
+ "patternProperties": {
+ "additionalProperties": {
+ "$ref": "#"
+ },
+ "default": {},
+ "type": "object"
+ },
+ "properties": {
+ "additionalProperties": {
+ "$ref": "#"
+ },
+ "default": {},
+ "type": "object"
+ },
+ "required": {
+ "$ref": "#/definitions/stringArray"
+ },
+ "title": {
+ "type": "string"
+ },
+ "type": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/simpleTypes"
+ },
+ {
+ "items": {
+ "$ref": "#/definitions/simpleTypes"
+ },
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ }
+ ]
+ },
+ "uniqueItems": {
+ "default": false,
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+}