diff --git a/spec.schema.json b/spec.schema.json index a854b2d..293a53d 100644 --- a/spec.schema.json +++ b/spec.schema.json @@ -140,6 +140,12 @@ "attributes": { "$ref": "#/$defs/ConstraintMap" }, + "enums": { + "items": { + "$ref": "#/$defs/Enum" + }, + "type": "array" + }, "htmlPolicies": { "items": { "$ref": "#/$defs/HTMLPolicy" @@ -211,6 +217,45 @@ "additionalProperties": false, "type": "object" }, + "Enum": { + "properties": { + "declare": { + "type": "string" + }, + "match": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "values": { + "additionalProperties": { + "$ref": "#/$defs/EnumConstraint" + }, + "type": "object" + } + }, + "additionalProperties": false, + "type": "object", + "required": [ + "values" + ] + }, + "EnumConstraint": { + "properties": { + "forbidden": { + "type": "boolean" + }, + "deprecated": { + "$ref": "#/$defs/Deprecation" + } + }, + "additionalProperties": false, + "type": "object" + }, "Glob": { "properties": {}, "additionalProperties": false, @@ -286,6 +331,9 @@ }, "type": "array" }, + "enumReference": { + "type": "string" + }, "pattern": { "$ref": "#/$defs/Regexp" },