reffy 20.0.13 → 20.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +151 -151
  3. package/index.js +29 -29
  4. package/package.json +5 -5
  5. package/reffy.js +324 -324
  6. package/schemas/browserlib/extract-algorithms.json +52 -52
  7. package/schemas/browserlib/extract-cssdfn.json +108 -108
  8. package/schemas/browserlib/extract-dfns.json +90 -90
  9. package/schemas/browserlib/extract-elements.json +17 -17
  10. package/schemas/browserlib/extract-events.json +31 -31
  11. package/schemas/browserlib/extract-headings.json +19 -19
  12. package/schemas/browserlib/extract-ids.json +7 -7
  13. package/schemas/browserlib/extract-links.json +12 -12
  14. package/schemas/browserlib/extract-refs.json +12 -12
  15. package/schemas/common.json +876 -876
  16. package/schemas/files/extracts/algorithms.json +12 -12
  17. package/schemas/files/extracts/css.json +16 -16
  18. package/schemas/files/extracts/dfns.json +12 -12
  19. package/schemas/files/extracts/elements.json +12 -12
  20. package/schemas/files/extracts/events.json +12 -12
  21. package/schemas/files/extracts/headings.json +12 -12
  22. package/schemas/files/extracts/ids.json +12 -12
  23. package/schemas/files/extracts/links.json +12 -12
  24. package/schemas/files/extracts/refs.json +12 -12
  25. package/schemas/files/index.json +59 -59
  26. package/schemas/postprocessing/events.json +50 -50
  27. package/schemas/postprocessing/idlnames-parsed.json +27 -27
  28. package/schemas/postprocessing/idlnames.json +17 -17
  29. package/schemas/postprocessing/idlparsed.json +67 -67
  30. package/src/browserlib/clone-and-clean.mjs +24 -24
  31. package/src/browserlib/create-outline.mjs +353 -353
  32. package/src/browserlib/extract-algorithms.mjs +723 -723
  33. package/src/browserlib/extract-cddl.mjs +125 -125
  34. package/src/browserlib/extract-dfns.mjs +1093 -1093
  35. package/src/browserlib/extract-headings.mjs +76 -76
  36. package/src/browserlib/extract-ids.mjs +28 -28
  37. package/src/browserlib/extract-links.mjs +45 -45
  38. package/src/browserlib/extract-references.mjs +308 -308
  39. package/src/browserlib/extract-webidl.mjs +89 -89
  40. package/src/browserlib/get-absolute-url.mjs +29 -29
  41. package/src/browserlib/get-code-elements.mjs +20 -20
  42. package/src/browserlib/get-generator.mjs +26 -26
  43. package/src/browserlib/get-lastmodified-date.mjs +13 -13
  44. package/src/browserlib/get-revision.mjs +12 -12
  45. package/src/browserlib/get-title.mjs +14 -14
  46. package/src/browserlib/informative-selector.mjs +24 -24
  47. package/src/browserlib/map-ids-to-headings.mjs +173 -173
  48. package/src/browserlib/reffy.json +85 -85
  49. package/src/browserlib/trim-spaces.mjs +35 -35
  50. package/src/cli/check-missing-dfns.js +587 -587
  51. package/src/cli/merge-crawl-results.js +132 -132
  52. package/src/cli/parse-webidl.js +447 -447
  53. package/src/lib/css-grammar-parse-tree.schema.json +109 -109
  54. package/src/lib/css-grammar-parser.js +440 -440
  55. package/src/lib/fetch.js +51 -51
  56. package/src/lib/markdown-report.js +360 -360
  57. package/src/lib/mock-server.js +218 -218
  58. package/src/lib/post-processor.js +322 -322
  59. package/src/lib/throttled-queue.js +129 -129
  60. package/src/postprocessing/annotate-links.js +41 -41
  61. package/src/postprocessing/csscomplete.js +48 -48
  62. package/src/postprocessing/idlnames.js +391 -391
  63. package/src/postprocessing/idlparsed.js +179 -179
  64. package/src/postprocessing/patch-dfns.js +51 -51
  65. package/src/specs/missing-css-rules.json +197 -197
  66. package/src/specs/spec-equivalents.json +149 -149
  67. package/src/browserlib/extract-editors.mjs~ +0 -14
  68. package/src/browserlib/extract-events.mjs~ +0 -3
  69. package/src/browserlib/generate-es-dfn-report.sh~ +0 -4
  70. package/src/browserlib/get-revision.mjs~ +0 -7
  71. package/src/cli/csstree-grammar-check.js +0 -28
  72. package/src/cli/csstree-grammar-check.js~ +0 -10
  73. package/src/cli/csstree-grammar-parser.js +0 -11
  74. package/src/cli/csstree-grammar-parser.js~ +0 -1
  75. package/src/cli/extract-editors.js~ +0 -38
  76. package/src/cli/process-specs.js~ +0 -28
  77. package/src/postprocessing/annotate-links.js~ +0 -8
  78. package/src/postprocessing/events.js~ +0 -245
@@ -1,52 +1,52 @@
1
- {
2
- "$schema": "http://json-schema.org/schema#",
3
- "$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-algorithms.json",
4
-
5
- "$defs": {
6
- "step": {
7
- "type": "object",
8
- "additionalProperties": false,
9
- "properties": {
10
- "html": { "type": "string" },
11
- "rationale": { "type": "string" },
12
- "operation": { "type": "string" },
13
- "case": { "type": "string" },
14
- "steps": {
15
- "type": "array",
16
- "items": { "$ref": "#/$defs/step" },
17
- "minItems": 1
18
- },
19
- "ignored": {
20
- "type": "array",
21
- "items": { "type": "string" },
22
- "minItems": 1
23
- },
24
- "additional": {
25
- "type": "array",
26
- "items": { "$ref": "#/$defs/step" },
27
- "minItems": 1
28
- }
29
- }
30
- }
31
- },
32
-
33
- "type": "array",
34
- "items": {
35
- "type": "object",
36
- "additionalProperties": false,
37
- "required": ["rationale"],
38
- "properties": {
39
- "name": { "type": "string" },
40
- "href": { "$ref": "../common.json#/$defs/url" },
41
- "html": { "type": "string" },
42
- "rationale": { "type": "string" },
43
- "operation": { "type": "string" },
44
- "case": { "type": "string" },
45
- "steps": {
46
- "type": "array",
47
- "items": { "$ref": "#/$defs/step" },
48
- "minItems": 1
49
- }
50
- }
51
- }
52
- }
1
+ {
2
+ "$schema": "http://json-schema.org/schema#",
3
+ "$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-algorithms.json",
4
+
5
+ "$defs": {
6
+ "step": {
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "html": { "type": "string" },
11
+ "rationale": { "type": "string" },
12
+ "operation": { "type": "string" },
13
+ "case": { "type": "string" },
14
+ "steps": {
15
+ "type": "array",
16
+ "items": { "$ref": "#/$defs/step" },
17
+ "minItems": 1
18
+ },
19
+ "ignored": {
20
+ "type": "array",
21
+ "items": { "type": "string" },
22
+ "minItems": 1
23
+ },
24
+ "additional": {
25
+ "type": "array",
26
+ "items": { "$ref": "#/$defs/step" },
27
+ "minItems": 1
28
+ }
29
+ }
30
+ }
31
+ },
32
+
33
+ "type": "array",
34
+ "items": {
35
+ "type": "object",
36
+ "additionalProperties": false,
37
+ "required": ["rationale"],
38
+ "properties": {
39
+ "name": { "type": "string" },
40
+ "href": { "$ref": "../common.json#/$defs/url" },
41
+ "html": { "type": "string" },
42
+ "rationale": { "type": "string" },
43
+ "operation": { "type": "string" },
44
+ "case": { "type": "string" },
45
+ "steps": {
46
+ "type": "array",
47
+ "items": { "$ref": "#/$defs/step" },
48
+ "minItems": 1
49
+ }
50
+ }
51
+ }
52
+ }
@@ -1,108 +1,108 @@
1
- {
2
- "$schema": "http://json-schema.org/schema#",
3
- "$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-cssdfn.json",
4
-
5
- "type": "object",
6
- "additionalProperties": false,
7
- "required": ["properties", "atrules", "selectors", "values"],
8
- "properties": {
9
- "properties": {
10
- "type": "array",
11
- "items": {
12
- "type": "object",
13
- "additionalProperties": true,
14
- "required": ["name"],
15
- "properties": {
16
- "name": { "$ref": "../common.json#/$defs/cssPropertyName" },
17
- "href": { "$ref": "../common.json#/$defs/url" },
18
- "value": { "$ref": "../common.json#/$defs/cssValue" },
19
- "newValues": { "$ref": "../common.json#/$defs/cssValue" },
20
- "values": { "$ref": "../common.json#/$defs/cssValues" },
21
- "legacyAliasOf": { "$ref": "../common.json#/$defs/cssPropertyName" },
22
- "styleDeclaration": {
23
- "type": "array",
24
- "items": { "type": "string" },
25
- "minItems": 1
26
- }
27
- }
28
- }
29
- },
30
-
31
- "atrules": {
32
- "type": "array",
33
- "items": {
34
- "type": "object",
35
- "required": ["name", "descriptors"],
36
- "additionalProperties": false,
37
- "properties": {
38
- "name": { "type": "string", "pattern": "^@" },
39
- "href": { "$ref": "../common.json#/$defs/url" },
40
- "value": { "$ref": "../common.json#/$defs/cssValue" },
41
- "prose": { "type": "string" },
42
- "descriptors": {
43
- "type": "array",
44
- "items": {
45
- "type": "object",
46
- "required": ["name", "for"],
47
- "additionalProperties": true,
48
- "properties": {
49
- "name": { "type": "string" },
50
- "for": { "type": "string" },
51
- "href": { "$ref": "../common.json#/$defs/url" },
52
- "value": { "$ref": "../common.json#/$defs/cssValue" },
53
- "values": { "$ref": "../common.json#/$defs/cssValues" }
54
- }
55
- }
56
- },
57
- "values": { "$ref": "../common.json#/$defs/cssValues" }
58
- }
59
- }
60
- },
61
-
62
- "selectors": {
63
- "type": "array",
64
- "items": {
65
- "type": "object",
66
- "required": ["name"],
67
- "additionalProperties": false,
68
- "properties": {
69
- "name": { "$ref": "../common.json#/$defs/cssPropertyName" },
70
- "href": { "$ref": "../common.json#/$defs/url" },
71
- "prose": { "type": "string" },
72
- "value": { "$ref": "../common.json#/$defs/cssValue" },
73
- "values": { "$ref": "../common.json#/$defs/cssValues" }
74
- }
75
- }
76
- },
77
-
78
- "values": {
79
- "type": "array",
80
- "items": {
81
- "type": "object",
82
- "required": ["name", "type"],
83
- "additionalProperties": false,
84
- "properties": {
85
- "name": { "type": "string", "pattern": "^<[^>]+>$|^.*()$" },
86
- "href": { "$ref": "../common.json#/$defs/url" },
87
- "type": { "type": "string", "enum": ["type", "function"] },
88
- "prose": { "type": "string" },
89
- "value": { "$ref": "../common.json#/$defs/cssValue" },
90
- "values": { "$ref": "../common.json#/$defs/cssValues" }
91
- }
92
- }
93
- },
94
-
95
- "warnings": {
96
- "type": "array",
97
- "items": {
98
- "type": "object",
99
- "required": ["msg", "name"],
100
- "properties": {
101
- "msg": { "type": "string" },
102
- "name": { "type": "string" }
103
- }
104
- },
105
- "minItems": 1
106
- }
107
- }
108
- }
1
+ {
2
+ "$schema": "http://json-schema.org/schema#",
3
+ "$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-cssdfn.json",
4
+
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["properties", "atrules", "selectors", "values"],
8
+ "properties": {
9
+ "properties": {
10
+ "type": "array",
11
+ "items": {
12
+ "type": "object",
13
+ "additionalProperties": true,
14
+ "required": ["name"],
15
+ "properties": {
16
+ "name": { "$ref": "../common.json#/$defs/cssPropertyName" },
17
+ "href": { "$ref": "../common.json#/$defs/url" },
18
+ "value": { "$ref": "../common.json#/$defs/cssValue" },
19
+ "newValues": { "$ref": "../common.json#/$defs/cssValue" },
20
+ "values": { "$ref": "../common.json#/$defs/cssValues" },
21
+ "legacyAliasOf": { "$ref": "../common.json#/$defs/cssPropertyName" },
22
+ "styleDeclaration": {
23
+ "type": "array",
24
+ "items": { "type": "string" },
25
+ "minItems": 1
26
+ }
27
+ }
28
+ }
29
+ },
30
+
31
+ "atrules": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "object",
35
+ "required": ["name", "descriptors"],
36
+ "additionalProperties": false,
37
+ "properties": {
38
+ "name": { "type": "string", "pattern": "^@" },
39
+ "href": { "$ref": "../common.json#/$defs/url" },
40
+ "value": { "$ref": "../common.json#/$defs/cssValue" },
41
+ "prose": { "type": "string" },
42
+ "descriptors": {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "object",
46
+ "required": ["name", "for"],
47
+ "additionalProperties": true,
48
+ "properties": {
49
+ "name": { "type": "string" },
50
+ "for": { "type": "string" },
51
+ "href": { "$ref": "../common.json#/$defs/url" },
52
+ "value": { "$ref": "../common.json#/$defs/cssValue" },
53
+ "values": { "$ref": "../common.json#/$defs/cssValues" }
54
+ }
55
+ }
56
+ },
57
+ "values": { "$ref": "../common.json#/$defs/cssValues" }
58
+ }
59
+ }
60
+ },
61
+
62
+ "selectors": {
63
+ "type": "array",
64
+ "items": {
65
+ "type": "object",
66
+ "required": ["name"],
67
+ "additionalProperties": false,
68
+ "properties": {
69
+ "name": { "$ref": "../common.json#/$defs/cssPropertyName" },
70
+ "href": { "$ref": "../common.json#/$defs/url" },
71
+ "prose": { "type": "string" },
72
+ "value": { "$ref": "../common.json#/$defs/cssValue" },
73
+ "values": { "$ref": "../common.json#/$defs/cssValues" }
74
+ }
75
+ }
76
+ },
77
+
78
+ "values": {
79
+ "type": "array",
80
+ "items": {
81
+ "type": "object",
82
+ "required": ["name", "type"],
83
+ "additionalProperties": false,
84
+ "properties": {
85
+ "name": { "type": "string", "pattern": "^<[^>]+>$|^.*()$" },
86
+ "href": { "$ref": "../common.json#/$defs/url" },
87
+ "type": { "type": "string", "enum": ["type", "function"] },
88
+ "prose": { "type": "string" },
89
+ "value": { "$ref": "../common.json#/$defs/cssValue" },
90
+ "values": { "$ref": "../common.json#/$defs/cssValues" }
91
+ }
92
+ }
93
+ },
94
+
95
+ "warnings": {
96
+ "type": "array",
97
+ "items": {
98
+ "type": "object",
99
+ "required": ["msg", "name"],
100
+ "properties": {
101
+ "msg": { "type": "string" },
102
+ "name": { "type": "string" }
103
+ }
104
+ },
105
+ "minItems": 1
106
+ }
107
+ }
108
+ }
@@ -1,90 +1,90 @@
1
- {
2
- "$schema": "http://json-schema.org/schema#",
3
- "$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-dfns.json",
4
-
5
- "$defs": {
6
- "heading": {
7
- "type": "object",
8
- "additionalProperties": false,
9
- "required": ["href", "title"],
10
- "properties": {
11
- "id": { "$ref": "../common.json#/$defs/id" },
12
- "href": { "$ref": "../common.json#/$defs/url" },
13
- "title": { "type": "string" },
14
- "number": { "$ref": "../common.json#/$defs/headingNumber" },
15
- "alternateIds": { "type": "array", "items": { "$ref": "../common.json#/$defs/id"} }
16
- }
17
- }
18
- },
19
-
20
- "type": "array",
21
- "items": {
22
- "type": "object",
23
- "additionalProperties": false,
24
- "required": ["id", "href", "linkingText", "localLinkingText",
25
- "type", "for", "access", "informative", "heading", "definedIn"],
26
- "properties": {
27
- "id": { "$ref": "../common.json#/$defs/id" },
28
- "href": { "$ref": "../common.json#/$defs/url" },
29
- "linkingText": {
30
- "type": "array",
31
- "items": { "type": "string" }
32
- },
33
- "localLinkingText": {
34
- "type": "array",
35
- "items": { "type": "string" }
36
- },
37
- "type": {
38
- "type": "string",
39
- "enum": [
40
- "property", "descriptor", "value", "type",
41
- "at-rule", "function", "selector",
42
- "namespace", "interface", "constructor", "method", "argument",
43
- "attribute", "callback", "dictionary", "dict-member", "enum",
44
- "enum-value", "exception", "const", "typedef", "stringifier",
45
- "serializer", "iterator", "maplike", "setlike", "extended-attribute",
46
- "event", "permission",
47
- "element", "element-state", "element-attr", "attr-value",
48
- "cddl-module", "cddl-type", "cddl-parameter", "cddl-key", "cddl-value",
49
- "scheme", "http-header",
50
- "grammar", "abstract-op", "dfn"
51
- ],
52
- "$comment": "Types taken from src/browserlib/extract-dfns.mjs"
53
- },
54
- "for": {
55
- "type": "array",
56
- "items": { "type": "string" }
57
- },
58
- "access": {
59
- "type": "string",
60
- "enum": ["private", "public"]
61
- },
62
- "informative": {
63
- "type": "boolean"
64
- },
65
- "heading": { "$ref": "#/$defs/heading" },
66
- "definedIn": {
67
- "type": "string"
68
- },
69
- "links": {
70
- "type": "array",
71
- "items": {
72
- "type": "object",
73
- "additionalProperties": false,
74
- "required": ["type", "id", "href", "name"],
75
- "properties": {
76
- "type": { "type": "string", "enum": ["dev"] },
77
- "id": { "$ref": "../common.json#/$defs/id" },
78
- "name": { "type": "string" },
79
- "href": { "$ref": "../common.json#/$defs/url" },
80
- "heading": { "$ref": "#/$defs/heading" }
81
- }
82
- }
83
- },
84
- "htmlProse": {
85
- "type": "string",
86
- "minLength": 1
87
- }
88
- }
89
- }
90
- }
1
+ {
2
+ "$schema": "http://json-schema.org/schema#",
3
+ "$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-dfns.json",
4
+
5
+ "$defs": {
6
+ "heading": {
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "required": ["href", "title"],
10
+ "properties": {
11
+ "id": { "$ref": "../common.json#/$defs/id" },
12
+ "href": { "$ref": "../common.json#/$defs/url" },
13
+ "title": { "type": "string" },
14
+ "number": { "$ref": "../common.json#/$defs/headingNumber" },
15
+ "alternateIds": { "type": "array", "items": { "$ref": "../common.json#/$defs/id"} }
16
+ }
17
+ }
18
+ },
19
+
20
+ "type": "array",
21
+ "items": {
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "required": ["id", "href", "linkingText", "localLinkingText",
25
+ "type", "for", "access", "informative", "heading", "definedIn"],
26
+ "properties": {
27
+ "id": { "$ref": "../common.json#/$defs/id" },
28
+ "href": { "$ref": "../common.json#/$defs/url" },
29
+ "linkingText": {
30
+ "type": "array",
31
+ "items": { "type": "string" }
32
+ },
33
+ "localLinkingText": {
34
+ "type": "array",
35
+ "items": { "type": "string" }
36
+ },
37
+ "type": {
38
+ "type": "string",
39
+ "enum": [
40
+ "property", "descriptor", "value", "type",
41
+ "at-rule", "function", "selector",
42
+ "namespace", "interface", "constructor", "method", "argument",
43
+ "attribute", "callback", "dictionary", "dict-member", "enum",
44
+ "enum-value", "exception", "const", "typedef", "stringifier",
45
+ "serializer", "iterator", "maplike", "setlike", "extended-attribute",
46
+ "event", "permission",
47
+ "element", "element-state", "element-attr", "attr-value",
48
+ "cddl-module", "cddl-type", "cddl-parameter", "cddl-key", "cddl-value",
49
+ "scheme", "http-header",
50
+ "grammar", "abstract-op", "dfn"
51
+ ],
52
+ "$comment": "Types taken from src/browserlib/extract-dfns.mjs"
53
+ },
54
+ "for": {
55
+ "type": "array",
56
+ "items": { "type": "string" }
57
+ },
58
+ "access": {
59
+ "type": "string",
60
+ "enum": ["private", "public"]
61
+ },
62
+ "informative": {
63
+ "type": "boolean"
64
+ },
65
+ "heading": { "$ref": "#/$defs/heading" },
66
+ "definedIn": {
67
+ "type": "string"
68
+ },
69
+ "links": {
70
+ "type": "array",
71
+ "items": {
72
+ "type": "object",
73
+ "additionalProperties": false,
74
+ "required": ["type", "id", "href", "name"],
75
+ "properties": {
76
+ "type": { "type": "string", "enum": ["dev"] },
77
+ "id": { "$ref": "../common.json#/$defs/id" },
78
+ "name": { "type": "string" },
79
+ "href": { "$ref": "../common.json#/$defs/url" },
80
+ "heading": { "$ref": "#/$defs/heading" }
81
+ }
82
+ }
83
+ },
84
+ "htmlProse": {
85
+ "type": "string",
86
+ "minLength": 1
87
+ }
88
+ }
89
+ }
90
+ }
@@ -1,17 +1,17 @@
1
- {
2
- "$schema": "http://json-schema.org/schema#",
3
- "$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-elements.json",
4
-
5
- "type": "array",
6
- "items": {
7
- "type": "object",
8
- "additionalProperties": false,
9
- "required": ["name", "href"],
10
- "properties": {
11
- "name": { "type": "string" },
12
- "interface": { "$ref": "../common.json#/$defs/interface" },
13
- "href": { "$ref": "../common.json#/$defs/url" },
14
- "obsolete": { "type": "boolean" }
15
- }
16
- }
17
- }
1
+ {
2
+ "$schema": "http://json-schema.org/schema#",
3
+ "$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-elements.json",
4
+
5
+ "type": "array",
6
+ "items": {
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "required": ["name", "href"],
10
+ "properties": {
11
+ "name": { "type": "string" },
12
+ "interface": { "$ref": "../common.json#/$defs/interface" },
13
+ "href": { "$ref": "../common.json#/$defs/url" },
14
+ "obsolete": { "type": "boolean" }
15
+ }
16
+ }
17
+ }
@@ -1,31 +1,31 @@
1
- {
2
- "$schema": "http://json-schema.org/schema#",
3
- "$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-events.json",
4
-
5
- "type": "array",
6
- "items": {
7
- "type": "object",
8
- "additionalProperties": false,
9
- "required": ["type"],
10
- "properties": {
11
- "type": { "type": "string" },
12
- "interface": { "$ref": "../common.json#/$defs/interface" },
13
- "targets": {
14
- "type": "array",
15
- "items": { "$ref": "../common.json#/$defs/interface" }
16
- },
17
- "bubbles": { "type": "boolean" },
18
- "cancelable": { "type": "boolean" },
19
- "isExtension": { "type": "boolean" },
20
- "href": { "$ref": "../common.json#/$defs/url" },
21
- "src": {
22
- "type": "object",
23
- "additionalProperties": false,
24
- "properties": {
25
- "format": { "type": "string" },
26
- "href": { "$ref": "../common.json#/$defs/url" }
27
- }
28
- }
29
- }
30
- }
31
- }
1
+ {
2
+ "$schema": "http://json-schema.org/schema#",
3
+ "$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-events.json",
4
+
5
+ "type": "array",
6
+ "items": {
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "required": ["type"],
10
+ "properties": {
11
+ "type": { "type": "string" },
12
+ "interface": { "$ref": "../common.json#/$defs/interface" },
13
+ "targets": {
14
+ "type": "array",
15
+ "items": { "$ref": "../common.json#/$defs/interface" }
16
+ },
17
+ "bubbles": { "type": "boolean" },
18
+ "cancelable": { "type": "boolean" },
19
+ "isExtension": { "type": "boolean" },
20
+ "href": { "$ref": "../common.json#/$defs/url" },
21
+ "src": {
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "properties": {
25
+ "format": { "type": "string" },
26
+ "href": { "$ref": "../common.json#/$defs/url" }
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }
@@ -1,19 +1,19 @@
1
- {
2
- "$schema": "http://json-schema.org/schema#",
3
- "$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-headings.json",
4
-
5
- "type": "array",
6
- "items": {
7
- "type": "object",
8
- "additionalProperties": false,
9
- "required": ["id", "href", "title", "level"],
10
- "properties": {
11
- "id": { "$ref": "../common.json#/$defs/id" },
12
- "href": { "$ref": "../common.json#/$defs/url" },
13
- "title": { "type": "string" },
14
- "level": { "type": "integer" },
15
- "number": { "$ref": "../common.json#/$defs/headingNumber" },
16
- "alternateIds": { "type": "array", "items": { "$ref": "../common.json#/$defs/id"} }
17
- }
18
- }
19
- }
1
+ {
2
+ "$schema": "http://json-schema.org/schema#",
3
+ "$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-headings.json",
4
+
5
+ "type": "array",
6
+ "items": {
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "required": ["id", "href", "title", "level"],
10
+ "properties": {
11
+ "id": { "$ref": "../common.json#/$defs/id" },
12
+ "href": { "$ref": "../common.json#/$defs/url" },
13
+ "title": { "type": "string" },
14
+ "level": { "type": "integer" },
15
+ "number": { "$ref": "../common.json#/$defs/headingNumber" },
16
+ "alternateIds": { "type": "array", "items": { "$ref": "../common.json#/$defs/id"} }
17
+ }
18
+ }
19
+ }