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 AnySchema 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": {
63 "anyOf": [{"type": "array"}, {"$ref": "#"}]
67 "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}]
70 "additionalProperties": {"$ref": "#"}
72 "patternProperties": {
73 "additionalProperties": {"$ref": "#"}
76 "additionalProperties": {"$ref": "#"}
79 "then": {"$ref": "#"},
80 "else": {"$ref": "#"},
81 "allOf": {"$ref": "#/definitions/schemaArray"},
82 "anyOf": {"$ref": "#/definitions/schemaArray"},
83 "oneOf": {"$ref": "#/definitions/schemaArray"},
85 "contains": {"$ref": "#"},
86 "propertyNames": {"$ref": "#"}