Path: blob/master/node_modules/ajv/lib/refs/json-schema-secure.json
1126 views
{1"$schema": "http://json-schema.org/draft-07/schema#",2"$id": "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/json-schema-secure.json#",3"title": "Meta-schema for the security assessment of JSON Schemas",4"description": "If a JSON Schema fails validation against this meta-schema, it may be unsafe to validate untrusted data",5"definitions": {6"schemaArray": {7"type": "array",8"minItems": 1,9"items": {"$ref": "#"}10}11},12"dependencies": {13"patternProperties": {14"description": "prevent slow validation of large property names",15"required": ["propertyNames"],16"properties": {17"propertyNames": {18"required": ["maxLength"]19}20}21},22"uniqueItems": {23"description": "prevent slow validation of large non-scalar arrays",24"if": {25"properties": {26"uniqueItems": {"const": true},27"items": {28"properties": {29"type": {30"anyOf": [31{32"enum": ["object", "array"]33},34{35"type": "array",36"contains": {"enum": ["object", "array"]}37}38]39}40}41}42}43},44"then": {45"required": ["maxItems"]46}47},48"pattern": {49"description": "prevent slow pattern matching of large strings",50"required": ["maxLength"]51},52"format": {53"description": "prevent slow format validation of large strings",54"required": ["maxLength"]55}56},57"properties": {58"additionalItems": {"$ref": "#"},59"additionalProperties": {"$ref": "#"},60"dependencies": {61"additionalProperties": {62"anyOf": [63{"type": "array"},64{"$ref": "#"}65]66}67},68"items": {69"anyOf": [70{"$ref": "#"},71{"$ref": "#/definitions/schemaArray"}72]73},74"definitions": {75"additionalProperties": {"$ref": "#"}76},77"patternProperties": {78"additionalProperties": {"$ref": "#"}79},80"properties": {81"additionalProperties": {"$ref": "#"}82},83"if": {"$ref": "#"},84"then": {"$ref": "#"},85"else": {"$ref": "#"},86"allOf": {"$ref": "#/definitions/schemaArray"},87"anyOf": {"$ref": "#/definitions/schemaArray"},88"oneOf": {"$ref": "#/definitions/schemaArray"},89"not": {"$ref": "#"},90"contains": {"$ref": "#"},91"propertyNames": {"$ref": "#"}92}93}949596