2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "$id": "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/json-schema-secure.json#",
4 "title": "Meta-schema for the security assessment of JSON Schemas",
5 "description": "If a JSON Schema fails validation against this meta-schema, it may be unsafe to validate untrusted data",
10 "items": {"$ref": "#"}
14 "patternProperties": {
15 "description": "prevent slow validation of large property names",
16 "required": ["propertyNames"],
19 "required": ["maxLength"]
24 "description": "prevent slow validation of large non-scalar arrays",
27 "uniqueItems": {"const": true},
33 "enum": ["object", "array"]
37 "contains": {"enum": ["object", "array"]}
46 "required": ["maxItems"]
50 "description": "prevent slow pattern matching of large strings",
51 "required": ["maxLength"]
54 "description": "prevent slow format validation of large strings",
55 "required": ["maxLength"]
59 "additionalItems": {"$ref": "#"},
60 "additionalProperties": {"$ref": "#"},
62 "additionalProperties": {
72 {"$ref": "#/definitions/schemaArray"}
76 "additionalProperties": {"$ref": "#"}
78 "patternProperties": {
79 "additionalProperties": {"$ref": "#"}
82 "additionalProperties": {"$ref": "#"}
85 "then": {"$ref": "#"},
86 "else": {"$ref": "#"},
87 "allOf": {"$ref": "#/definitions/schemaArray"},
88 "anyOf": {"$ref": "#/definitions/schemaArray"},
89 "oneOf": {"$ref": "#/definitions/schemaArray"},
91 "contains": {"$ref": "#"},
92 "propertyNames": {"$ref": "#"}