2016-12-22 00:11:59 +03:00
|
|
|
{
|
|
|
|
"$schema": "http://json-schema.org/draft-06/schema#",
|
2017-02-27 03:18:42 +03:00
|
|
|
"$id": "http://json-schema.org/draft-06/schema#",
|
2016-12-22 00:11:59 +03:00
|
|
|
"title": "Core schema meta-schema",
|
|
|
|
"definitions": {
|
|
|
|
"schemaArray": {
|
|
|
|
"type": "array",
|
|
|
|
"minItems": 1,
|
|
|
|
"items": { "$ref": "#" }
|
|
|
|
},
|
|
|
|
"positiveInteger": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 0
|
|
|
|
},
|
|
|
|
"positiveIntegerDefault0": {
|
|
|
|
"allOf": [
|
|
|
|
{ "$ref": "#/definitions/positiveInteger" },
|
|
|
|
{ "default": 0 }
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"simpleTypes": {
|
|
|
|
"enum": [
|
|
|
|
"array",
|
|
|
|
"boolean",
|
|
|
|
"integer",
|
|
|
|
"null",
|
|
|
|
"number",
|
|
|
|
"object",
|
|
|
|
"string"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"stringArray": {
|
|
|
|
"type": "array",
|
|
|
|
"items": { "type": "string" },
|
|
|
|
"uniqueItems": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"type": ["object", "boolean"],
|
|
|
|
"properties": {
|
2017-02-27 03:18:42 +03:00
|
|
|
"$id": {
|
2016-12-22 00:11:59 +03:00
|
|
|
"type": "string",
|
2016-12-30 02:05:28 +03:00
|
|
|
"format": "uri-ref"
|
2016-12-22 00:11:59 +03:00
|
|
|
},
|
|
|
|
"$schema": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uri"
|
|
|
|
},
|
|
|
|
"title": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"default": {},
|
|
|
|
"multipleOf": {
|
|
|
|
"type": "number",
|
|
|
|
"minimum": 0,
|
|
|
|
"exclusiveMinimum": true
|
|
|
|
},
|
|
|
|
"maximum": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"exclusiveMaximum": {
|
2016-12-29 02:08:25 +03:00
|
|
|
"type": ["number", "boolean"],
|
2016-12-22 00:11:59 +03:00
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"minimum": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"exclusiveMinimum": {
|
2016-12-29 02:08:25 +03:00
|
|
|
"type": ["number", "boolean"],
|
2016-12-22 00:11:59 +03:00
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"maxLength": { "$ref": "#/definitions/positiveInteger" },
|
|
|
|
"minLength": { "$ref": "#/definitions/positiveIntegerDefault0" },
|
|
|
|
"pattern": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "regex"
|
|
|
|
},
|
|
|
|
"additionalItems": { "$ref": "#" },
|
|
|
|
"items": {
|
|
|
|
"anyOf": [
|
|
|
|
{ "$ref": "#" },
|
|
|
|
{ "$ref": "#/definitions/schemaArray" }
|
|
|
|
],
|
|
|
|
"default": {}
|
|
|
|
},
|
|
|
|
"maxItems": { "$ref": "#/definitions/positiveInteger" },
|
|
|
|
"minItems": { "$ref": "#/definitions/positiveIntegerDefault0" },
|
|
|
|
"uniqueItems": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"contains": { "$ref": "#" },
|
|
|
|
"maxProperties": { "$ref": "#/definitions/positiveInteger" },
|
|
|
|
"minProperties": { "$ref": "#/definitions/positiveIntegerDefault0" },
|
|
|
|
"required": { "$ref": "#/definitions/stringArray" },
|
|
|
|
"additionalProperties": { "$ref": "#" },
|
|
|
|
"definitions": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": { "$ref": "#" },
|
|
|
|
"default": {}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": { "$ref": "#" },
|
|
|
|
"default": {}
|
|
|
|
},
|
|
|
|
"patternProperties": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": { "$ref": "#" },
|
|
|
|
"default": {}
|
|
|
|
},
|
|
|
|
"dependencies": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": {
|
|
|
|
"anyOf": [
|
|
|
|
{ "$ref": "#" },
|
|
|
|
{ "$ref": "#/definitions/stringArray" }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"propertyNames": { "$ref": "#" },
|
|
|
|
"const": {},
|
|
|
|
"enum": {
|
|
|
|
"type": "array",
|
|
|
|
"minItems": 1,
|
|
|
|
"uniqueItems": true
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"anyOf": [
|
|
|
|
{ "$ref": "#/definitions/simpleTypes" },
|
|
|
|
{
|
|
|
|
"type": "array",
|
|
|
|
"items": { "$ref": "#/definitions/simpleTypes" },
|
|
|
|
"minItems": 1,
|
|
|
|
"uniqueItems": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"format": { "type": "string" },
|
|
|
|
"allOf": { "$ref": "#/definitions/schemaArray" },
|
|
|
|
"anyOf": { "$ref": "#/definitions/schemaArray" },
|
|
|
|
"oneOf": { "$ref": "#/definitions/schemaArray" },
|
|
|
|
"not": { "$ref": "#" }
|
|
|
|
},
|
|
|
|
"dependencies": {
|
2016-12-29 02:08:25 +03:00
|
|
|
"exclusiveMaximum": {
|
|
|
|
"anyOf": [
|
|
|
|
{ "properties": { "exclusiveMaximum": { "type": "number" } } },
|
|
|
|
{ "required": ["maximum"] }
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"exclusiveMinimum": {
|
|
|
|
"anyOf": [
|
|
|
|
{ "properties": { "exclusiveMinimum": { "type": "number" } } },
|
|
|
|
{ "required": ["minimum"] }
|
|
|
|
]
|
|
|
|
}
|
2016-12-22 00:11:59 +03:00
|
|
|
},
|
|
|
|
"default": {}
|
|
|
|
}
|