summaryrefslogtreecommitdiff
path: root/jsonschema/schemas/draft4.json
diff options
context:
space:
mode:
Diffstat (limited to 'jsonschema/schemas/draft4.json')
-rw-r--r--jsonschema/schemas/draft4.json222
1 files changed, 221 insertions, 1 deletions
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"
+}