|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/schema#", |
| 3 | + "$id": "https://github.com/w3c/reffy/blob/main/schemas/postprocessing/css.json", |
| 4 | + |
| 5 | + "type": "object", |
| 6 | + "additionalProperties": false, |
| 7 | + "required": ["atrules", "functions", "properties", "selectors", "types"], |
| 8 | + "properties": { |
| 9 | + "atrules": { |
| 10 | + "type": "array", |
| 11 | + "items": { |
| 12 | + "type": "object", |
| 13 | + "required": ["name", "descriptors"], |
| 14 | + "additionalProperties": false, |
| 15 | + "properties": { |
| 16 | + "name": { "type": "string", "pattern": "^@" }, |
| 17 | + "href": { "$ref": "../common.json#/$defs/url" }, |
| 18 | + "value": { "$ref": "../common.json#/$defs/cssValue" }, |
| 19 | + "prose": { "type": "string" }, |
| 20 | + "descriptors": { |
| 21 | + "type": "array", |
| 22 | + "items": { |
| 23 | + "type": "object", |
| 24 | + "required": ["name", "for"], |
| 25 | + "additionalProperties": true, |
| 26 | + "properties": { |
| 27 | + "name": { "type": "string" }, |
| 28 | + "for": { "type": "string" }, |
| 29 | + "href": { "$ref": "../common.json#/$defs/url" }, |
| 30 | + "value": { "$ref": "../common.json#/$defs/cssValue" } |
| 31 | + } |
| 32 | + } |
| 33 | + } |
| 34 | + } |
| 35 | + } |
| 36 | + }, |
| 37 | + "functions": { |
| 38 | + "type": "array", |
| 39 | + "items": { |
| 40 | + "type": "object", |
| 41 | + "required": ["name", "type"], |
| 42 | + "additionalProperties": false, |
| 43 | + "properties": { |
| 44 | + "name": { "type": "string", "pattern": "^<[^>]+>$|^.*()$" }, |
| 45 | + "for": { "type": "string" }, |
| 46 | + "href": { "$ref": "../common.json#/$defs/url" }, |
| 47 | + "type": { "type": "string", "enum": ["function"] }, |
| 48 | + "prose": { "type": "string" }, |
| 49 | + "value": { "$ref": "../common.json#/$defs/cssValue" } |
| 50 | + } |
| 51 | + } |
| 52 | + }, |
| 53 | + "properties": { |
| 54 | + "type": "array", |
| 55 | + "items": { |
| 56 | + "type": "object", |
| 57 | + "additionalProperties": true, |
| 58 | + "required": ["name"], |
| 59 | + "properties": { |
| 60 | + "name": { "$ref": "../common.json#/$defs/cssPropertyName" }, |
| 61 | + "href": { "$ref": "../common.json#/$defs/url" }, |
| 62 | + "value": { "$ref": "../common.json#/$defs/cssValue" }, |
| 63 | + "legacyAliasOf": { "$ref": "../common.json#/$defs/cssPropertyName" }, |
| 64 | + "styleDeclaration": { |
| 65 | + "type": "array", |
| 66 | + "items": { "type": "string" }, |
| 67 | + "minItems": 1 |
| 68 | + } |
| 69 | + } |
| 70 | + } |
| 71 | + }, |
| 72 | + "selectors": { |
| 73 | + "type": "array", |
| 74 | + "items": { |
| 75 | + "type": "object", |
| 76 | + "required": ["name"], |
| 77 | + "additionalProperties": false, |
| 78 | + "properties": { |
| 79 | + "name": { "$ref": "../common.json#/$defs/cssPropertyName" }, |
| 80 | + "href": { "$ref": "../common.json#/$defs/url" }, |
| 81 | + "prose": { "type": "string" }, |
| 82 | + "value": { "$ref": "../common.json#/$defs/cssValue" } |
| 83 | + } |
| 84 | + } |
| 85 | + }, |
| 86 | + "types": { |
| 87 | + "type": "array", |
| 88 | + "items": { |
| 89 | + "type": "object", |
| 90 | + "required": ["name", "type"], |
| 91 | + "additionalProperties": false, |
| 92 | + "properties": { |
| 93 | + "name": { "type": "string", "pattern": "^<[^>]+>$|^.*()$" }, |
| 94 | + "for": { "type": "string" }, |
| 95 | + "href": { "$ref": "../common.json#/$defs/url" }, |
| 96 | + "type": { "type": "string", "enum": ["type"] }, |
| 97 | + "prose": { "type": "string" }, |
| 98 | + "value": { "$ref": "../common.json#/$defs/cssValue" } |
| 99 | + } |
| 100 | + } |
| 101 | + } |
| 102 | + } |
| 103 | +} |
0 commit comments