@rathnasgala2/schemas 3.0.0 → 3.1.0
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.
- package/README.md +39 -42
- package/THIRD_PARTY_LICENSES.json +1 -1
- package/diagnostics/diagnostic-map.json +557 -7
- package/docs/catalogs/app-components.json +435 -1
- package/docs/catalogs/app-routes.json +152 -2
- package/docs/catalogs/schema-inventory.json +15 -5
- package/examples/valid/artifact-manifest/rules.json +2 -2
- package/examples/valid/build-input/rules.json +341 -1
- package/examples/valid/build-provenance/rules.json +2 -2
- package/examples/valid/interactions-config/canonical.json +18 -0
- package/examples/valid/interactions-config/rules.json +529 -0
- package/fixtures/boundary/artifact-manifest/rules.json +2 -2
- package/fixtures/boundary/build-input/rules.json +408 -9
- package/fixtures/boundary/build-provenance/rules.json +2 -2
- package/fixtures/boundary/interactions-config/root.json +18 -0
- package/fixtures/boundary/interactions-config/rules.json +725 -0
- package/fixtures/invalid/artifact-manifest/SCHEMA_CONSTANT_INVALID/cases.json +0 -11
- package/fixtures/invalid/artifact-manifest/SCHEMA_TYPE_INVALID/cases.json +11 -0
- package/fixtures/invalid/build-input/GRAPHEME_LENGTH_INVALID/cases.json +11 -0
- package/fixtures/invalid/build-input/HTTPS_URL_INVALID/cases.json +29 -0
- package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +141 -0
- package/fixtures/invalid/build-input/SCHEMA_ARRAY_TOO_LONG/cases.json +15 -0
- package/fixtures/invalid/build-input/SCHEMA_CONSTANT_INVALID/cases.json +20 -0
- package/fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json +11 -0
- package/fixtures/invalid/build-input/SCHEMA_NEGATED_RULE_MATCHED/cases.json +9 -0
- package/fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_LARGE/cases.json +22 -0
- package/fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_SMALL/cases.json +22 -0
- package/fixtures/invalid/build-input/SCHEMA_OBJECT_TOO_LARGE/cases.json +0 -15
- package/fixtures/invalid/build-input/SCHEMA_PATTERN_INVALID/cases.json +9 -0
- package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +379 -0
- package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +190 -0
- package/fixtures/invalid/build-input/SCHEMA_VERSION_UNSUPPORTED/cases.json +22 -0
- package/fixtures/invalid/build-provenance/SCHEMA_CONSTANT_INVALID/cases.json +0 -11
- package/fixtures/invalid/build-provenance/SCHEMA_TYPE_INVALID/cases.json +11 -0
- package/fixtures/invalid/interactions-config/BCP47_INVALID/cases.json +58 -0
- package/fixtures/invalid/interactions-config/CANONICAL_ROUTE_INVALID/cases.json +38 -0
- package/fixtures/invalid/interactions-config/DIGEST_INVALID/cases.json +20 -0
- package/fixtures/invalid/interactions-config/EXTENSION_KEY_INVALID/cases.json +20 -0
- package/fixtures/invalid/interactions-config/GIT_OBJECT_ID_INVALID/cases.json +20 -0
- package/fixtures/invalid/interactions-config/GRAPHEME_LENGTH_INVALID/cases.json +13 -0
- package/fixtures/invalid/interactions-config/HTTPS_URL_INVALID/cases.json +29 -0
- package/fixtures/invalid/interactions-config/ISO_COUNTRY_INVALID/cases.json +20 -0
- package/fixtures/invalid/interactions-config/PACKAGE_EXACT_INVALID/cases.json +38 -0
- package/fixtures/invalid/interactions-config/PACKAGE_RANGE_INVALID/cases.json +38 -0
- package/fixtures/invalid/interactions-config/PASSIVE_VISUAL_TOKEN_INVALID/cases.json +11 -0
- package/fixtures/invalid/interactions-config/PLAIN_LABEL_INVALID/cases.json +31 -0
- package/fixtures/invalid/interactions-config/PLAIN_TEXT_INVALID/cases.json +20 -0
- package/fixtures/invalid/interactions-config/REPOSITORY_GLOB_INVALID/cases.json +49 -0
- package/fixtures/invalid/interactions-config/REPOSITORY_PATH_INVALID/cases.json +62 -0
- package/fixtures/invalid/interactions-config/REQUEST_FIELD_UNKNOWN/cases.json +108 -0
- package/fixtures/invalid/interactions-config/RFC3339_INVALID/cases.json +29 -0
- package/fixtures/invalid/interactions-config/SCHEMA_ARRAY_TOO_LONG/cases.json +17 -0
- package/fixtures/invalid/interactions-config/SCHEMA_CONSTANT_INVALID/cases.json +22 -0
- package/fixtures/invalid/interactions-config/SCHEMA_ENUM_INVALID/cases.json +13 -0
- package/fixtures/invalid/interactions-config/SCHEMA_NEGATED_RULE_MATCHED/cases.json +11 -0
- package/fixtures/invalid/interactions-config/SCHEMA_NUMBER_TOO_LARGE/cases.json +24 -0
- package/fixtures/invalid/interactions-config/SCHEMA_NUMBER_TOO_SMALL/cases.json +24 -0
- package/fixtures/invalid/interactions-config/SCHEMA_PATTERN_INVALID/cases.json +11 -0
- package/fixtures/invalid/interactions-config/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +305 -0
- package/fixtures/invalid/interactions-config/SCHEMA_TYPE_INVALID/cases.json +175 -0
- package/fixtures/invalid/interactions-config/SCHEMA_VERSION_UNSUPPORTED/cases.json +20 -0
- package/fixtures/invalid/interactions-config/SEMVER_INVALID/cases.json +20 -0
- package/fixtures/invalid/interactions-config/SEMVER_RANGE_INVALID/cases.json +38 -0
- package/fixtures/invalid/interactions-config/SLUG_INVALID/cases.json +38 -0
- package/fixtures/invalid/interactions-config/STABLE_ID_INVALID/cases.json +20 -0
- package/fixtures/invalid/interactions-config/URN_INVALID/cases.json +38 -0
- package/fixtures/manifest.json +4287 -26
- package/fixtures/s2/empty-modules-placements.json +233 -3
- package/fixtures/s2/manifest.json +1 -0
- package/fixtures/unknown-field/artifact-manifest/rules.json +1 -1
- package/fixtures/unknown-field/build-input/rules.json +198 -1
- package/fixtures/unknown-field/build-provenance/rules.json +1 -1
- package/fixtures/unknown-field/interactions-config/root.json +19 -0
- package/fixtures/unknown-field/interactions-config/rules.json +227 -0
- package/generated/browser/validator-core.mjs +4 -3
- package/generated/typescript/contracts/artifact-manifest.d.ts +1 -1
- package/generated/typescript/contracts/build-input.d.ts +58 -1
- package/generated/typescript/contracts/build-provenance.d.ts +1 -1
- package/generated/typescript/contracts/interactions-config.d.ts +91 -0
- package/generated/typescript/index.d.ts +4 -0
- package/generated/typescript/index.js +14 -0
- package/openapi/http-catalog.json +230 -2
- package/openapi/openapi.yaml +5941 -1509
- package/package.json +2 -1
- package/sbom.cdx.json +23 -23
- package/schemas/artifact-manifest.schema.json +1 -1
- package/schemas/build-input.schema.json +117 -2
- package/schemas/build-provenance.schema.json +1 -1
- package/schemas/interactions-config.schema.json +222 -0
- package/src/internal/schema-validator.js +3 -0
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-16b0819e3c5f555c",
|
|
4
|
+
"coveredRuleIds": [
|
|
5
|
+
"interactions-config:#/properties/publicCounts:required:reactions"
|
|
6
|
+
],
|
|
7
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
8
|
+
"schemaPointer": "#/properties/publicCounts",
|
|
9
|
+
"keyword": "required",
|
|
10
|
+
"instance": { "comments": false },
|
|
11
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"caseId": "interactions-config-invalid-20f4949e7533cfac",
|
|
15
|
+
"coveredRuleIds": ["interactions-config:#:required:schemaVersion"],
|
|
16
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
17
|
+
"schemaPointer": "#",
|
|
18
|
+
"keyword": "required",
|
|
19
|
+
"instance": {
|
|
20
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
21
|
+
"reactions": {
|
|
22
|
+
"enabled": false,
|
|
23
|
+
"definitions": [
|
|
24
|
+
{
|
|
25
|
+
"key": "fixture-1",
|
|
26
|
+
"label": "fixture-1",
|
|
27
|
+
"visual": { "kind": "emoji", "token": "👍" },
|
|
28
|
+
"order": 1,
|
|
29
|
+
"enabled": false
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"comments": { "enabled": false, "allowReplies": false, "maxDepth": 1 },
|
|
34
|
+
"publicCounts": { "reactions": false, "comments": false }
|
|
35
|
+
},
|
|
36
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"caseId": "interactions-config-invalid-40ff7f0e5a1b1768",
|
|
40
|
+
"coveredRuleIds": ["interactions-config:#:required:publicCounts"],
|
|
41
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
42
|
+
"schemaPointer": "#",
|
|
43
|
+
"keyword": "required",
|
|
44
|
+
"instance": {
|
|
45
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
46
|
+
"schemaVersion": "2.0.0",
|
|
47
|
+
"reactions": {
|
|
48
|
+
"enabled": false,
|
|
49
|
+
"definitions": [
|
|
50
|
+
{
|
|
51
|
+
"key": "fixture-1",
|
|
52
|
+
"label": "fixture-1",
|
|
53
|
+
"visual": { "kind": "emoji", "token": "👍" },
|
|
54
|
+
"order": 1,
|
|
55
|
+
"enabled": false
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"comments": { "enabled": false, "allowReplies": false, "maxDepth": 1 }
|
|
60
|
+
},
|
|
61
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"caseId": "interactions-config-invalid-56807698bc518933",
|
|
65
|
+
"coveredRuleIds": [
|
|
66
|
+
"interactions-config:#/properties/publicCounts:required:comments"
|
|
67
|
+
],
|
|
68
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
69
|
+
"schemaPointer": "#/properties/publicCounts",
|
|
70
|
+
"keyword": "required",
|
|
71
|
+
"instance": { "reactions": false },
|
|
72
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"caseId": "interactions-config-invalid-5d0c95f0d534fd22",
|
|
76
|
+
"coveredRuleIds": [
|
|
77
|
+
"interactions-config:#/properties/comments:required:maxDepth"
|
|
78
|
+
],
|
|
79
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
80
|
+
"schemaPointer": "#/properties/comments",
|
|
81
|
+
"keyword": "required",
|
|
82
|
+
"instance": { "enabled": false, "allowReplies": false },
|
|
83
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"caseId": "interactions-config-invalid-65a5282ab38efeb9",
|
|
87
|
+
"coveredRuleIds": [
|
|
88
|
+
"interactions-config:#/$defs/reactionDefinition:required:label"
|
|
89
|
+
],
|
|
90
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
91
|
+
"schemaPointer": "#/$defs/reactionDefinition",
|
|
92
|
+
"keyword": "required",
|
|
93
|
+
"instance": {
|
|
94
|
+
"key": "fixture-1",
|
|
95
|
+
"visual": { "kind": "emoji", "token": "👍" },
|
|
96
|
+
"order": 1,
|
|
97
|
+
"enabled": false
|
|
98
|
+
},
|
|
99
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"caseId": "interactions-config-invalid-6eda003eb2ed1b13",
|
|
103
|
+
"coveredRuleIds": [
|
|
104
|
+
"interactions-config:#/properties/comments:required:enabled"
|
|
105
|
+
],
|
|
106
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
107
|
+
"schemaPointer": "#/properties/comments",
|
|
108
|
+
"keyword": "required",
|
|
109
|
+
"instance": { "allowReplies": false, "maxDepth": 1 },
|
|
110
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"caseId": "interactions-config-invalid-750af026a44be52c",
|
|
114
|
+
"coveredRuleIds": [
|
|
115
|
+
"interactions-config:#/$defs/reactionDefinition:required:order"
|
|
116
|
+
],
|
|
117
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
118
|
+
"schemaPointer": "#/$defs/reactionDefinition",
|
|
119
|
+
"keyword": "required",
|
|
120
|
+
"instance": {
|
|
121
|
+
"key": "fixture-1",
|
|
122
|
+
"label": "fixture-1",
|
|
123
|
+
"visual": { "kind": "emoji", "token": "👍" },
|
|
124
|
+
"enabled": false
|
|
125
|
+
},
|
|
126
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"caseId": "interactions-config-invalid-7a5fe88ddfe3706c",
|
|
130
|
+
"coveredRuleIds": ["interactions-config:#:required:schemaId"],
|
|
131
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
132
|
+
"schemaPointer": "#",
|
|
133
|
+
"keyword": "required",
|
|
134
|
+
"instance": {
|
|
135
|
+
"schemaVersion": "2.0.0",
|
|
136
|
+
"reactions": {
|
|
137
|
+
"enabled": false,
|
|
138
|
+
"definitions": [
|
|
139
|
+
{
|
|
140
|
+
"key": "fixture-1",
|
|
141
|
+
"label": "fixture-1",
|
|
142
|
+
"visual": { "kind": "emoji", "token": "👍" },
|
|
143
|
+
"order": 1,
|
|
144
|
+
"enabled": false
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"comments": { "enabled": false, "allowReplies": false, "maxDepth": 1 },
|
|
149
|
+
"publicCounts": { "reactions": false, "comments": false }
|
|
150
|
+
},
|
|
151
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"caseId": "interactions-config-invalid-8d23401f9de34c98",
|
|
155
|
+
"coveredRuleIds": ["interactions-config:#:required:reactions"],
|
|
156
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
157
|
+
"schemaPointer": "#",
|
|
158
|
+
"keyword": "required",
|
|
159
|
+
"instance": {
|
|
160
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
161
|
+
"schemaVersion": "2.0.0",
|
|
162
|
+
"comments": { "enabled": false, "allowReplies": false, "maxDepth": 1 },
|
|
163
|
+
"publicCounts": { "reactions": false, "comments": false }
|
|
164
|
+
},
|
|
165
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"caseId": "interactions-config-invalid-91b7647a2aedd79b",
|
|
169
|
+
"coveredRuleIds": [
|
|
170
|
+
"interactions-config:#/properties/reactions:required:definitions"
|
|
171
|
+
],
|
|
172
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
173
|
+
"schemaPointer": "#/properties/reactions",
|
|
174
|
+
"keyword": "required",
|
|
175
|
+
"instance": { "enabled": false },
|
|
176
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"caseId": "interactions-config-invalid-a0eb436fa9625933",
|
|
180
|
+
"coveredRuleIds": [
|
|
181
|
+
"interactions-config:#/$defs/reactionVisual:required:kind"
|
|
182
|
+
],
|
|
183
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
184
|
+
"schemaPointer": "#/$defs/reactionVisual",
|
|
185
|
+
"keyword": "required",
|
|
186
|
+
"instance": { "token": "👍" },
|
|
187
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"caseId": "interactions-config-invalid-ac5817e5da316a57",
|
|
191
|
+
"coveredRuleIds": ["interactions-config:#:required:comments"],
|
|
192
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
193
|
+
"schemaPointer": "#",
|
|
194
|
+
"keyword": "required",
|
|
195
|
+
"instance": {
|
|
196
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
197
|
+
"schemaVersion": "2.0.0",
|
|
198
|
+
"reactions": {
|
|
199
|
+
"enabled": false,
|
|
200
|
+
"definitions": [
|
|
201
|
+
{
|
|
202
|
+
"key": "fixture-1",
|
|
203
|
+
"label": "fixture-1",
|
|
204
|
+
"visual": { "kind": "emoji", "token": "👍" },
|
|
205
|
+
"order": 1,
|
|
206
|
+
"enabled": false
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
"publicCounts": { "reactions": false, "comments": false }
|
|
211
|
+
},
|
|
212
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"caseId": "interactions-config-invalid-bd2b578b75472eda",
|
|
216
|
+
"coveredRuleIds": [
|
|
217
|
+
"interactions-config:#/$defs/reactionVisual:required:token"
|
|
218
|
+
],
|
|
219
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
220
|
+
"schemaPointer": "#/$defs/reactionVisual",
|
|
221
|
+
"keyword": "required",
|
|
222
|
+
"instance": { "kind": "emoji" },
|
|
223
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"caseId": "interactions-config-invalid-c916a0a96f88f7fa",
|
|
227
|
+
"coveredRuleIds": [
|
|
228
|
+
"interactions-config:#/$defs/reactionDefinition:required:enabled"
|
|
229
|
+
],
|
|
230
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
231
|
+
"schemaPointer": "#/$defs/reactionDefinition",
|
|
232
|
+
"keyword": "required",
|
|
233
|
+
"instance": {
|
|
234
|
+
"key": "fixture-1",
|
|
235
|
+
"label": "fixture-1",
|
|
236
|
+
"visual": { "kind": "emoji", "token": "👍" },
|
|
237
|
+
"order": 1
|
|
238
|
+
},
|
|
239
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"caseId": "interactions-config-invalid-cd495ddd49ad0626",
|
|
243
|
+
"coveredRuleIds": [
|
|
244
|
+
"interactions-config:#/properties/comments:required:allowReplies"
|
|
245
|
+
],
|
|
246
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
247
|
+
"schemaPointer": "#/properties/comments",
|
|
248
|
+
"keyword": "required",
|
|
249
|
+
"instance": { "enabled": false, "maxDepth": 1 },
|
|
250
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"caseId": "interactions-config-invalid-d3089ec5517909d6",
|
|
254
|
+
"coveredRuleIds": [
|
|
255
|
+
"interactions-config:#/properties/reactions:required:enabled"
|
|
256
|
+
],
|
|
257
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
258
|
+
"schemaPointer": "#/properties/reactions",
|
|
259
|
+
"keyword": "required",
|
|
260
|
+
"instance": {
|
|
261
|
+
"definitions": [
|
|
262
|
+
{
|
|
263
|
+
"key": "fixture-1",
|
|
264
|
+
"label": "fixture-1",
|
|
265
|
+
"visual": { "kind": "emoji", "token": "👍" },
|
|
266
|
+
"order": 1,
|
|
267
|
+
"enabled": false
|
|
268
|
+
}
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"caseId": "interactions-config-invalid-e9c85547c5e0bdb7",
|
|
275
|
+
"coveredRuleIds": [
|
|
276
|
+
"interactions-config:#/$defs/reactionDefinition:required:key"
|
|
277
|
+
],
|
|
278
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
279
|
+
"schemaPointer": "#/$defs/reactionDefinition",
|
|
280
|
+
"keyword": "required",
|
|
281
|
+
"instance": {
|
|
282
|
+
"label": "fixture-1",
|
|
283
|
+
"visual": { "kind": "emoji", "token": "👍" },
|
|
284
|
+
"order": 1,
|
|
285
|
+
"enabled": false
|
|
286
|
+
},
|
|
287
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"caseId": "interactions-config-invalid-fae89f12aed92379",
|
|
291
|
+
"coveredRuleIds": [
|
|
292
|
+
"interactions-config:#/$defs/reactionDefinition:required:visual"
|
|
293
|
+
],
|
|
294
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
295
|
+
"schemaPointer": "#/$defs/reactionDefinition",
|
|
296
|
+
"keyword": "required",
|
|
297
|
+
"instance": {
|
|
298
|
+
"key": "fixture-1",
|
|
299
|
+
"label": "fixture-1",
|
|
300
|
+
"order": 1,
|
|
301
|
+
"enabled": false
|
|
302
|
+
},
|
|
303
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
304
|
+
}
|
|
305
|
+
]
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-05482730a33d9679",
|
|
4
|
+
"coveredRuleIds": [
|
|
5
|
+
"interactions-config:#/properties/comments/properties/allowReplies:type"
|
|
6
|
+
],
|
|
7
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
8
|
+
"schemaPointer": "#/properties/comments/properties/allowReplies",
|
|
9
|
+
"keyword": "type",
|
|
10
|
+
"instance": null,
|
|
11
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"caseId": "interactions-config-invalid-0c2691f7fda863df",
|
|
15
|
+
"coveredRuleIds": [
|
|
16
|
+
"interactions-config:#/properties/comments/properties/maxDepth:type"
|
|
17
|
+
],
|
|
18
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
19
|
+
"schemaPointer": "#/properties/comments/properties/maxDepth",
|
|
20
|
+
"keyword": "type",
|
|
21
|
+
"instance": null,
|
|
22
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"caseId": "interactions-config-invalid-2326b7d0aac42cb7",
|
|
26
|
+
"coveredRuleIds": [
|
|
27
|
+
"interactions-config:#/properties/publicCounts/properties/reactions:type"
|
|
28
|
+
],
|
|
29
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
30
|
+
"schemaPointer": "#/properties/publicCounts/properties/reactions",
|
|
31
|
+
"keyword": "type",
|
|
32
|
+
"instance": null,
|
|
33
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"caseId": "interactions-config-invalid-3bf201c57685d3d9",
|
|
37
|
+
"coveredRuleIds": ["interactions-config:#/properties/reactions:type"],
|
|
38
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
39
|
+
"schemaPointer": "#/properties/reactions",
|
|
40
|
+
"keyword": "type",
|
|
41
|
+
"instance": [],
|
|
42
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"caseId": "interactions-config-invalid-4401126e11a7da2c",
|
|
46
|
+
"coveredRuleIds": [
|
|
47
|
+
"interactions-config:#/$defs/reactionDefinition/properties/label:type"
|
|
48
|
+
],
|
|
49
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
50
|
+
"schemaPointer": "#/$defs/reactionDefinition/properties/label",
|
|
51
|
+
"keyword": "type",
|
|
52
|
+
"instance": null,
|
|
53
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"caseId": "interactions-config-invalid-4b6cef8abd29e1c8",
|
|
57
|
+
"coveredRuleIds": ["interactions-config:#/$defs/reactionKey:type"],
|
|
58
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
59
|
+
"schemaPointer": "#/$defs/reactionKey",
|
|
60
|
+
"keyword": "type",
|
|
61
|
+
"instance": null,
|
|
62
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"caseId": "interactions-config-invalid-4bfcb67d8ca1b719",
|
|
66
|
+
"coveredRuleIds": [
|
|
67
|
+
"interactions-config:#/$defs/reactionDefinition/properties/enabled:type"
|
|
68
|
+
],
|
|
69
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
70
|
+
"schemaPointer": "#/$defs/reactionDefinition/properties/enabled",
|
|
71
|
+
"keyword": "type",
|
|
72
|
+
"instance": null,
|
|
73
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"caseId": "interactions-config-invalid-68894cef327875c6",
|
|
77
|
+
"coveredRuleIds": [
|
|
78
|
+
"interactions-config:#/$defs/reactionDefinition/properties/order:type"
|
|
79
|
+
],
|
|
80
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
81
|
+
"schemaPointer": "#/$defs/reactionDefinition/properties/order",
|
|
82
|
+
"keyword": "type",
|
|
83
|
+
"instance": null,
|
|
84
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"caseId": "interactions-config-invalid-6df23bb4f30a85ac",
|
|
88
|
+
"coveredRuleIds": ["interactions-config:#/$defs/reactionVisual:type"],
|
|
89
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
90
|
+
"schemaPointer": "#/$defs/reactionVisual",
|
|
91
|
+
"keyword": "type",
|
|
92
|
+
"instance": [],
|
|
93
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"caseId": "interactions-config-invalid-6ebf0add3e047c02",
|
|
97
|
+
"coveredRuleIds": ["interactions-config:#/properties/comments:type"],
|
|
98
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
99
|
+
"schemaPointer": "#/properties/comments",
|
|
100
|
+
"keyword": "type",
|
|
101
|
+
"instance": [],
|
|
102
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"caseId": "interactions-config-invalid-75066c635d19bb91",
|
|
106
|
+
"coveredRuleIds": ["interactions-config:#/$defs/reactionDefinition:type"],
|
|
107
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
108
|
+
"schemaPointer": "#/$defs/reactionDefinition",
|
|
109
|
+
"keyword": "type",
|
|
110
|
+
"instance": [],
|
|
111
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"caseId": "interactions-config-invalid-87c34c8fa3c3d47d",
|
|
115
|
+
"coveredRuleIds": ["interactions-config:#/properties/publicCounts:type"],
|
|
116
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
117
|
+
"schemaPointer": "#/properties/publicCounts",
|
|
118
|
+
"keyword": "type",
|
|
119
|
+
"instance": [],
|
|
120
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"caseId": "interactions-config-invalid-9987ae107fb176f1",
|
|
124
|
+
"coveredRuleIds": ["interactions-config:#:type"],
|
|
125
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
126
|
+
"schemaPointer": "#",
|
|
127
|
+
"keyword": "type",
|
|
128
|
+
"instance": [],
|
|
129
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"caseId": "interactions-config-invalid-ac1a568db8f33892",
|
|
133
|
+
"coveredRuleIds": [
|
|
134
|
+
"interactions-config:#/properties/publicCounts/properties/comments:type"
|
|
135
|
+
],
|
|
136
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
137
|
+
"schemaPointer": "#/properties/publicCounts/properties/comments",
|
|
138
|
+
"keyword": "type",
|
|
139
|
+
"instance": null,
|
|
140
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"caseId": "interactions-config-invalid-b84e0d58732871d5",
|
|
144
|
+
"coveredRuleIds": [
|
|
145
|
+
"interactions-config:#/properties/reactions/properties/enabled:type"
|
|
146
|
+
],
|
|
147
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
148
|
+
"schemaPointer": "#/properties/reactions/properties/enabled",
|
|
149
|
+
"keyword": "type",
|
|
150
|
+
"instance": null,
|
|
151
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"caseId": "interactions-config-invalid-c7acb4574909de80",
|
|
155
|
+
"coveredRuleIds": [
|
|
156
|
+
"interactions-config:#/properties/reactions/properties/definitions:type"
|
|
157
|
+
],
|
|
158
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
159
|
+
"schemaPointer": "#/properties/reactions/properties/definitions",
|
|
160
|
+
"keyword": "type",
|
|
161
|
+
"instance": {},
|
|
162
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"caseId": "interactions-config-invalid-d573fd9f1c3f5577",
|
|
166
|
+
"coveredRuleIds": [
|
|
167
|
+
"interactions-config:#/properties/comments/properties/enabled:type"
|
|
168
|
+
],
|
|
169
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
170
|
+
"schemaPointer": "#/properties/comments/properties/enabled",
|
|
171
|
+
"keyword": "type",
|
|
172
|
+
"instance": null,
|
|
173
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
174
|
+
}
|
|
175
|
+
]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-194e0f495b06ab20",
|
|
4
|
+
"coveredRuleIds": ["interactions-config:#/properties/schemaId:const"],
|
|
5
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
6
|
+
"schemaPointer": "#/properties/schemaId",
|
|
7
|
+
"keyword": "const",
|
|
8
|
+
"instance": "urn:gala:schema:interactions-config:2.0.0-invalid",
|
|
9
|
+
"expectedCodes": ["SCHEMA_VERSION_UNSUPPORTED"]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"caseId": "interactions-config-invalid-4fe8e20f169e2e9e",
|
|
13
|
+
"coveredRuleIds": ["interactions-config:#/properties/schemaVersion:const"],
|
|
14
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
15
|
+
"schemaPointer": "#/properties/schemaVersion",
|
|
16
|
+
"keyword": "const",
|
|
17
|
+
"instance": "2.0.0-invalid",
|
|
18
|
+
"expectedCodes": ["SCHEMA_VERSION_UNSUPPORTED"]
|
|
19
|
+
}
|
|
20
|
+
]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-0d83259ceceae692",
|
|
4
|
+
"coveredRuleIds": ["interactions-config:#/$defs/semver:type"],
|
|
5
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
6
|
+
"schemaPointer": "#/$defs/semver",
|
|
7
|
+
"keyword": "type",
|
|
8
|
+
"instance": null,
|
|
9
|
+
"expectedCodes": ["SEMVER_INVALID"]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"caseId": "interactions-config-invalid-a075e3e96960bfa8",
|
|
13
|
+
"coveredRuleIds": ["interactions-config:#/$defs/semver:pattern"],
|
|
14
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
15
|
+
"schemaPointer": "#/$defs/semver",
|
|
16
|
+
"keyword": "pattern",
|
|
17
|
+
"instance": "",
|
|
18
|
+
"expectedCodes": ["SEMVER_INVALID"]
|
|
19
|
+
}
|
|
20
|
+
]
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-115576431097799e",
|
|
4
|
+
"coveredRuleIds": ["interactions-config:#/$defs/semverRange:type"],
|
|
5
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
6
|
+
"schemaPointer": "#/$defs/semverRange",
|
|
7
|
+
"keyword": "type",
|
|
8
|
+
"instance": null,
|
|
9
|
+
"expectedCodes": ["SEMVER_RANGE_INVALID"]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"caseId": "interactions-config-invalid-19e2abdee09a253e",
|
|
13
|
+
"coveredRuleIds": ["interactions-config:#/$defs/semverRange:minLength"],
|
|
14
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
15
|
+
"schemaPointer": "#/$defs/semverRange",
|
|
16
|
+
"keyword": "minLength",
|
|
17
|
+
"instance": "",
|
|
18
|
+
"expectedCodes": ["SEMVER_RANGE_INVALID"]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"caseId": "interactions-config-invalid-96b06ce2cc44741b",
|
|
22
|
+
"coveredRuleIds": ["interactions-config:#/$defs/semverRange:pattern"],
|
|
23
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
24
|
+
"schemaPointer": "#/$defs/semverRange",
|
|
25
|
+
"keyword": "pattern",
|
|
26
|
+
"instance": "",
|
|
27
|
+
"expectedCodes": ["SEMVER_RANGE_INVALID"]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"caseId": "interactions-config-invalid-a76b1e15db78e2a8",
|
|
31
|
+
"coveredRuleIds": ["interactions-config:#/$defs/semverRange:format"],
|
|
32
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
33
|
+
"schemaPointer": "#/$defs/semverRange",
|
|
34
|
+
"keyword": "format",
|
|
35
|
+
"instance": "latest",
|
|
36
|
+
"expectedCodes": ["SEMVER_RANGE_INVALID"]
|
|
37
|
+
}
|
|
38
|
+
]
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-0fc69cbdda306060",
|
|
4
|
+
"coveredRuleIds": ["interactions-config:#/$defs/slug:minLength"],
|
|
5
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
6
|
+
"schemaPointer": "#/$defs/slug",
|
|
7
|
+
"keyword": "minLength",
|
|
8
|
+
"instance": "",
|
|
9
|
+
"expectedCodes": ["SLUG_INVALID"]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"caseId": "interactions-config-invalid-61afe9f4d77753a8",
|
|
13
|
+
"coveredRuleIds": ["interactions-config:#/$defs/slug:pattern"],
|
|
14
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
15
|
+
"schemaPointer": "#/$defs/slug",
|
|
16
|
+
"keyword": "pattern",
|
|
17
|
+
"instance": "",
|
|
18
|
+
"expectedCodes": ["SLUG_INVALID"]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"caseId": "interactions-config-invalid-c2b1b50d8fc5917d",
|
|
22
|
+
"coveredRuleIds": ["interactions-config:#/$defs/slug:maxLength"],
|
|
23
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
24
|
+
"schemaPointer": "#/$defs/slug",
|
|
25
|
+
"keyword": "maxLength",
|
|
26
|
+
"recipe": { "kind": "repeat-string", "value": "a", "count": 81 },
|
|
27
|
+
"expectedCodes": ["SLUG_INVALID"]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"caseId": "interactions-config-invalid-f44b5c5b45b547db",
|
|
31
|
+
"coveredRuleIds": ["interactions-config:#/$defs/slug:type"],
|
|
32
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
33
|
+
"schemaPointer": "#/$defs/slug",
|
|
34
|
+
"keyword": "type",
|
|
35
|
+
"instance": null,
|
|
36
|
+
"expectedCodes": ["SLUG_INVALID"]
|
|
37
|
+
}
|
|
38
|
+
]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-10bf41a2706d57a9",
|
|
4
|
+
"coveredRuleIds": ["interactions-config:#/$defs/stableId:pattern"],
|
|
5
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
6
|
+
"schemaPointer": "#/$defs/stableId",
|
|
7
|
+
"keyword": "pattern",
|
|
8
|
+
"instance": "",
|
|
9
|
+
"expectedCodes": ["STABLE_ID_INVALID"]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"caseId": "interactions-config-invalid-8eb3237772123f10",
|
|
13
|
+
"coveredRuleIds": ["interactions-config:#/$defs/stableId:type"],
|
|
14
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
15
|
+
"schemaPointer": "#/$defs/stableId",
|
|
16
|
+
"keyword": "type",
|
|
17
|
+
"instance": null,
|
|
18
|
+
"expectedCodes": ["STABLE_ID_INVALID"]
|
|
19
|
+
}
|
|
20
|
+
]
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-67ae8d04e4980623",
|
|
4
|
+
"coveredRuleIds": ["interactions-config:#/$defs/urn:maxLength"],
|
|
5
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
6
|
+
"schemaPointer": "#/$defs/urn",
|
|
7
|
+
"keyword": "maxLength",
|
|
8
|
+
"recipe": { "kind": "repeat-string", "value": "a", "count": 256 },
|
|
9
|
+
"expectedCodes": ["URN_INVALID"]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"caseId": "interactions-config-invalid-b6f9b56df5dda920",
|
|
13
|
+
"coveredRuleIds": ["interactions-config:#/$defs/urn:minLength"],
|
|
14
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
15
|
+
"schemaPointer": "#/$defs/urn",
|
|
16
|
+
"keyword": "minLength",
|
|
17
|
+
"instance": "aaaaaaaaa",
|
|
18
|
+
"expectedCodes": ["URN_INVALID"]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"caseId": "interactions-config-invalid-c56114657eee560e",
|
|
22
|
+
"coveredRuleIds": ["interactions-config:#/$defs/urn:type"],
|
|
23
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
24
|
+
"schemaPointer": "#/$defs/urn",
|
|
25
|
+
"keyword": "type",
|
|
26
|
+
"instance": null,
|
|
27
|
+
"expectedCodes": ["URN_INVALID"]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"caseId": "interactions-config-invalid-c9334830d4b46deb",
|
|
31
|
+
"coveredRuleIds": ["interactions-config:#/$defs/urn:pattern"],
|
|
32
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
33
|
+
"schemaPointer": "#/$defs/urn",
|
|
34
|
+
"keyword": "pattern",
|
|
35
|
+
"instance": "",
|
|
36
|
+
"expectedCodes": ["URN_INVALID"]
|
|
37
|
+
}
|
|
38
|
+
]
|