@rathnasgala2/schemas 3.0.0 → 3.2.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 +153 -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 +242 -2
- package/openapi/openapi.yaml +6511 -1752
- 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,31 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-bafedb69cb841ad5",
|
|
4
|
+
"coveredRuleIds": [
|
|
5
|
+
"interactions-config:#/$defs/plainLabel:x-gala-graphemeLength"
|
|
6
|
+
],
|
|
7
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
8
|
+
"schemaPointer": "#/$defs/plainLabel",
|
|
9
|
+
"keyword": "x-gala-graphemeLength",
|
|
10
|
+
"recipe": { "kind": "repeat-string", "value": "a", "count": 81 },
|
|
11
|
+
"expectedCodes": ["PLAIN_LABEL_INVALID"]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"caseId": "interactions-config-invalid-bc5e415bab701f96",
|
|
15
|
+
"coveredRuleIds": ["interactions-config:#/$defs/plainLabel:format"],
|
|
16
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
17
|
+
"schemaPointer": "#/$defs/plainLabel",
|
|
18
|
+
"keyword": "format",
|
|
19
|
+
"instance": "<",
|
|
20
|
+
"expectedCodes": ["PLAIN_LABEL_INVALID"]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"caseId": "interactions-config-invalid-f489c7c2d8584ccd",
|
|
24
|
+
"coveredRuleIds": ["interactions-config:#/$defs/plainLabel:type"],
|
|
25
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
26
|
+
"schemaPointer": "#/$defs/plainLabel",
|
|
27
|
+
"keyword": "type",
|
|
28
|
+
"instance": null,
|
|
29
|
+
"expectedCodes": ["PLAIN_LABEL_INVALID"]
|
|
30
|
+
}
|
|
31
|
+
]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-a83493b34341bd53",
|
|
4
|
+
"coveredRuleIds": ["interactions-config:#/$defs/plainText:type"],
|
|
5
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
6
|
+
"schemaPointer": "#/$defs/plainText",
|
|
7
|
+
"keyword": "type",
|
|
8
|
+
"instance": null,
|
|
9
|
+
"expectedCodes": ["PLAIN_TEXT_INVALID"]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"caseId": "interactions-config-invalid-cc18468780578e93",
|
|
13
|
+
"coveredRuleIds": ["interactions-config:#/$defs/plainText:format"],
|
|
14
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
15
|
+
"schemaPointer": "#/$defs/plainText",
|
|
16
|
+
"keyword": "format",
|
|
17
|
+
"instance": "\u0000",
|
|
18
|
+
"expectedCodes": ["PLAIN_TEXT_INVALID"]
|
|
19
|
+
}
|
|
20
|
+
]
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-2835a977ffa9c0a7",
|
|
4
|
+
"coveredRuleIds": [
|
|
5
|
+
"interactions-config:#/$defs/glob:x-gala-utf8ByteLength"
|
|
6
|
+
],
|
|
7
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
8
|
+
"schemaPointer": "#/$defs/glob",
|
|
9
|
+
"keyword": "x-gala-utf8ByteLength",
|
|
10
|
+
"recipe": { "kind": "repeat-string", "value": "a", "count": 257 },
|
|
11
|
+
"expectedCodes": ["REPOSITORY_GLOB_INVALID"]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"caseId": "interactions-config-invalid-4e27e3fbf8050f26",
|
|
15
|
+
"coveredRuleIds": ["interactions-config:#/$defs/glob:type"],
|
|
16
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
17
|
+
"schemaPointer": "#/$defs/glob",
|
|
18
|
+
"keyword": "type",
|
|
19
|
+
"instance": null,
|
|
20
|
+
"expectedCodes": ["REPOSITORY_GLOB_INVALID"]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"caseId": "interactions-config-invalid-55842a2fc16d1db5",
|
|
24
|
+
"coveredRuleIds": ["interactions-config:#/$defs/glob:maxLength"],
|
|
25
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
26
|
+
"schemaPointer": "#/$defs/glob",
|
|
27
|
+
"keyword": "maxLength",
|
|
28
|
+
"recipe": { "kind": "repeat-string", "value": "a", "count": 257 },
|
|
29
|
+
"expectedCodes": ["REPOSITORY_GLOB_INVALID"]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"caseId": "interactions-config-invalid-ab8bf7984c99b0fd",
|
|
33
|
+
"coveredRuleIds": ["interactions-config:#/$defs/glob:minLength"],
|
|
34
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
35
|
+
"schemaPointer": "#/$defs/glob",
|
|
36
|
+
"keyword": "minLength",
|
|
37
|
+
"instance": "",
|
|
38
|
+
"expectedCodes": ["REPOSITORY_GLOB_INVALID"]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"caseId": "interactions-config-invalid-c3750aa9e4c4b96f",
|
|
42
|
+
"coveredRuleIds": ["interactions-config:#/$defs/glob:format"],
|
|
43
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
44
|
+
"schemaPointer": "#/$defs/glob",
|
|
45
|
+
"keyword": "format",
|
|
46
|
+
"instance": "../a",
|
|
47
|
+
"expectedCodes": ["REPOSITORY_GLOB_INVALID"]
|
|
48
|
+
}
|
|
49
|
+
]
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-0743df0ea06c821c",
|
|
4
|
+
"coveredRuleIds": [
|
|
5
|
+
"interactions-config:#/$defs/repoRelativePath:minLength"
|
|
6
|
+
],
|
|
7
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
8
|
+
"schemaPointer": "#/$defs/repoRelativePath",
|
|
9
|
+
"keyword": "minLength",
|
|
10
|
+
"instance": "",
|
|
11
|
+
"expectedCodes": ["REPOSITORY_PATH_INVALID"]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"caseId": "interactions-config-invalid-6e6515197250094c",
|
|
15
|
+
"coveredRuleIds": [
|
|
16
|
+
"interactions-config:#/$defs/repoRelativePath:x-gala-utf8ByteLength"
|
|
17
|
+
],
|
|
18
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
19
|
+
"schemaPointer": "#/$defs/repoRelativePath",
|
|
20
|
+
"keyword": "x-gala-utf8ByteLength",
|
|
21
|
+
"recipe": { "kind": "repeat-string", "value": "a", "count": 513 },
|
|
22
|
+
"expectedCodes": ["REPOSITORY_PATH_INVALID"]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"caseId": "interactions-config-invalid-7fc9241de8427009",
|
|
26
|
+
"coveredRuleIds": ["interactions-config:#/$defs/repoRelativePath:pattern"],
|
|
27
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
28
|
+
"schemaPointer": "#/$defs/repoRelativePath",
|
|
29
|
+
"keyword": "pattern",
|
|
30
|
+
"instance": "",
|
|
31
|
+
"expectedCodes": ["REPOSITORY_PATH_INVALID"]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"caseId": "interactions-config-invalid-b178116b1629e6e1",
|
|
35
|
+
"coveredRuleIds": ["interactions-config:#/$defs/repoRelativePath:type"],
|
|
36
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
37
|
+
"schemaPointer": "#/$defs/repoRelativePath",
|
|
38
|
+
"keyword": "type",
|
|
39
|
+
"instance": null,
|
|
40
|
+
"expectedCodes": ["REPOSITORY_PATH_INVALID"]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"caseId": "interactions-config-invalid-d3de49fb373dde2f",
|
|
44
|
+
"coveredRuleIds": ["interactions-config:#/$defs/repoRelativePath:format"],
|
|
45
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
46
|
+
"schemaPointer": "#/$defs/repoRelativePath",
|
|
47
|
+
"keyword": "format",
|
|
48
|
+
"instance": "../a",
|
|
49
|
+
"expectedCodes": ["REPOSITORY_PATH_INVALID"]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"caseId": "interactions-config-invalid-de219ea2508f9ec7",
|
|
53
|
+
"coveredRuleIds": [
|
|
54
|
+
"interactions-config:#/$defs/repoRelativePath:maxLength"
|
|
55
|
+
],
|
|
56
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
57
|
+
"schemaPointer": "#/$defs/repoRelativePath",
|
|
58
|
+
"keyword": "maxLength",
|
|
59
|
+
"recipe": { "kind": "repeat-string", "value": "a", "count": 513 },
|
|
60
|
+
"expectedCodes": ["REPOSITORY_PATH_INVALID"]
|
|
61
|
+
}
|
|
62
|
+
]
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-48abb9fbfebf923f",
|
|
4
|
+
"coveredRuleIds": [
|
|
5
|
+
"interactions-config:#/$defs/reactionDefinition:additionalProperties"
|
|
6
|
+
],
|
|
7
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
8
|
+
"schemaPointer": "#/$defs/reactionDefinition",
|
|
9
|
+
"keyword": "additionalProperties",
|
|
10
|
+
"instance": {
|
|
11
|
+
"key": "fixture-1",
|
|
12
|
+
"label": "fixture-1",
|
|
13
|
+
"visual": { "kind": "emoji", "token": "👍" },
|
|
14
|
+
"order": 1,
|
|
15
|
+
"enabled": false,
|
|
16
|
+
"unexpected": true
|
|
17
|
+
},
|
|
18
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"caseId": "interactions-config-invalid-506653f7d0d7cf37",
|
|
22
|
+
"coveredRuleIds": [
|
|
23
|
+
"interactions-config:#/properties/comments:additionalProperties"
|
|
24
|
+
],
|
|
25
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
26
|
+
"schemaPointer": "#/properties/comments",
|
|
27
|
+
"keyword": "additionalProperties",
|
|
28
|
+
"instance": {
|
|
29
|
+
"enabled": false,
|
|
30
|
+
"allowReplies": false,
|
|
31
|
+
"maxDepth": 1,
|
|
32
|
+
"unexpected": true
|
|
33
|
+
},
|
|
34
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"caseId": "interactions-config-invalid-90033408628d438d",
|
|
38
|
+
"coveredRuleIds": ["interactions-config:#:additionalProperties"],
|
|
39
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
40
|
+
"schemaPointer": "#",
|
|
41
|
+
"keyword": "additionalProperties",
|
|
42
|
+
"instance": {
|
|
43
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
44
|
+
"schemaVersion": "2.0.0",
|
|
45
|
+
"reactions": {
|
|
46
|
+
"enabled": false,
|
|
47
|
+
"definitions": [
|
|
48
|
+
{
|
|
49
|
+
"key": "fixture-1",
|
|
50
|
+
"label": "fixture-1",
|
|
51
|
+
"visual": { "kind": "emoji", "token": "👍" },
|
|
52
|
+
"order": 1,
|
|
53
|
+
"enabled": false
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"comments": { "enabled": false, "allowReplies": false, "maxDepth": 1 },
|
|
58
|
+
"publicCounts": { "reactions": false, "comments": false },
|
|
59
|
+
"unexpected": true
|
|
60
|
+
},
|
|
61
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"caseId": "interactions-config-invalid-a16bf07024aaa7be",
|
|
65
|
+
"coveredRuleIds": [
|
|
66
|
+
"interactions-config:#/properties/reactions:additionalProperties"
|
|
67
|
+
],
|
|
68
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
69
|
+
"schemaPointer": "#/properties/reactions",
|
|
70
|
+
"keyword": "additionalProperties",
|
|
71
|
+
"instance": {
|
|
72
|
+
"enabled": false,
|
|
73
|
+
"definitions": [
|
|
74
|
+
{
|
|
75
|
+
"key": "fixture-1",
|
|
76
|
+
"label": "fixture-1",
|
|
77
|
+
"visual": { "kind": "emoji", "token": "👍" },
|
|
78
|
+
"order": 1,
|
|
79
|
+
"enabled": false
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"unexpected": true
|
|
83
|
+
},
|
|
84
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"caseId": "interactions-config-invalid-b557f4bdbb79a959",
|
|
88
|
+
"coveredRuleIds": [
|
|
89
|
+
"interactions-config:#/$defs/reactionVisual:additionalProperties"
|
|
90
|
+
],
|
|
91
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
92
|
+
"schemaPointer": "#/$defs/reactionVisual",
|
|
93
|
+
"keyword": "additionalProperties",
|
|
94
|
+
"instance": { "kind": "emoji", "token": "👍", "unexpected": true },
|
|
95
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"caseId": "interactions-config-invalid-dc57867e125f113d",
|
|
99
|
+
"coveredRuleIds": [
|
|
100
|
+
"interactions-config:#/properties/publicCounts:additionalProperties"
|
|
101
|
+
],
|
|
102
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
103
|
+
"schemaPointer": "#/properties/publicCounts",
|
|
104
|
+
"keyword": "additionalProperties",
|
|
105
|
+
"instance": { "reactions": false, "comments": false, "unexpected": true },
|
|
106
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
107
|
+
}
|
|
108
|
+
]
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-2ae0640c4c22702e",
|
|
4
|
+
"coveredRuleIds": ["interactions-config:#/$defs/rfc3339:pattern"],
|
|
5
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
6
|
+
"schemaPointer": "#/$defs/rfc3339",
|
|
7
|
+
"keyword": "pattern",
|
|
8
|
+
"instance": "",
|
|
9
|
+
"expectedCodes": ["RFC3339_INVALID"]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"caseId": "interactions-config-invalid-e096d35aa951ab73",
|
|
13
|
+
"coveredRuleIds": ["interactions-config:#/$defs/rfc3339:type"],
|
|
14
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
15
|
+
"schemaPointer": "#/$defs/rfc3339",
|
|
16
|
+
"keyword": "type",
|
|
17
|
+
"instance": null,
|
|
18
|
+
"expectedCodes": ["RFC3339_INVALID"]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"caseId": "interactions-config-invalid-ec8fa91802a3a3f2",
|
|
22
|
+
"coveredRuleIds": ["interactions-config:#/$defs/rfc3339:format"],
|
|
23
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
24
|
+
"schemaPointer": "#/$defs/rfc3339",
|
|
25
|
+
"keyword": "format",
|
|
26
|
+
"instance": "2026-02-31T12:00:00.000Z",
|
|
27
|
+
"expectedCodes": ["RFC3339_INVALID"]
|
|
28
|
+
}
|
|
29
|
+
]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-7c6ce2848d582fc6",
|
|
4
|
+
"coveredRuleIds": [
|
|
5
|
+
"interactions-config:#/properties/reactions/properties/definitions:maxItems"
|
|
6
|
+
],
|
|
7
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
8
|
+
"schemaPointer": "#/properties/reactions/properties/definitions",
|
|
9
|
+
"keyword": "maxItems",
|
|
10
|
+
"recipe": {
|
|
11
|
+
"kind": "schema-array-count",
|
|
12
|
+
"schemaPointer": "#/properties/reactions/properties/definitions",
|
|
13
|
+
"length": 17
|
|
14
|
+
},
|
|
15
|
+
"expectedCodes": ["SCHEMA_ARRAY_TOO_LONG"]
|
|
16
|
+
}
|
|
17
|
+
]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-b9f369ecffb3734f",
|
|
4
|
+
"coveredRuleIds": [
|
|
5
|
+
"interactions-config:#/$defs/reactionVisual/properties/kind:const"
|
|
6
|
+
],
|
|
7
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
8
|
+
"schemaPointer": "#/$defs/reactionVisual/properties/kind",
|
|
9
|
+
"keyword": "const",
|
|
10
|
+
"instance": "emoji-invalid",
|
|
11
|
+
"expectedCodes": ["SCHEMA_CONSTANT_INVALID"]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"caseId": "interactions-config-invalid-f6f2af24c2abfd4e",
|
|
15
|
+
"coveredRuleIds": ["interactions-config:#/$defs/reactionKey/not:const"],
|
|
16
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
17
|
+
"schemaPointer": "#/$defs/reactionKey/not",
|
|
18
|
+
"keyword": "const",
|
|
19
|
+
"instance": "like-invalid",
|
|
20
|
+
"expectedCodes": ["SCHEMA_CONSTANT_INVALID"]
|
|
21
|
+
}
|
|
22
|
+
]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-cfe61680c641686e",
|
|
4
|
+
"coveredRuleIds": [
|
|
5
|
+
"interactions-config:#/$defs/reactionVisual/properties/token:enum"
|
|
6
|
+
],
|
|
7
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
8
|
+
"schemaPointer": "#/$defs/reactionVisual/properties/token",
|
|
9
|
+
"keyword": "enum",
|
|
10
|
+
"instance": "__invalid_enum__",
|
|
11
|
+
"expectedCodes": ["SCHEMA_ENUM_INVALID"]
|
|
12
|
+
}
|
|
13
|
+
]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-11b441f81bdfec0a",
|
|
4
|
+
"coveredRuleIds": ["interactions-config:#/$defs/reactionKey:not"],
|
|
5
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
6
|
+
"schemaPointer": "#/$defs/reactionKey",
|
|
7
|
+
"keyword": "not",
|
|
8
|
+
"instance": "like",
|
|
9
|
+
"expectedCodes": ["SCHEMA_NEGATED_RULE_MATCHED"]
|
|
10
|
+
}
|
|
11
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-2d2945ed0ddbb6b4",
|
|
4
|
+
"coveredRuleIds": [
|
|
5
|
+
"interactions-config:#/properties/comments/properties/maxDepth:maximum"
|
|
6
|
+
],
|
|
7
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
8
|
+
"schemaPointer": "#/properties/comments/properties/maxDepth",
|
|
9
|
+
"keyword": "maximum",
|
|
10
|
+
"instance": 5,
|
|
11
|
+
"expectedCodes": ["SCHEMA_NUMBER_TOO_LARGE"]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"caseId": "interactions-config-invalid-35205c615e837a68",
|
|
15
|
+
"coveredRuleIds": [
|
|
16
|
+
"interactions-config:#/$defs/reactionDefinition/properties/order:maximum"
|
|
17
|
+
],
|
|
18
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
19
|
+
"schemaPointer": "#/$defs/reactionDefinition/properties/order",
|
|
20
|
+
"keyword": "maximum",
|
|
21
|
+
"instance": 17,
|
|
22
|
+
"expectedCodes": ["SCHEMA_NUMBER_TOO_LARGE"]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-3297a526591d9ebe",
|
|
4
|
+
"coveredRuleIds": [
|
|
5
|
+
"interactions-config:#/properties/comments/properties/maxDepth:minimum"
|
|
6
|
+
],
|
|
7
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
8
|
+
"schemaPointer": "#/properties/comments/properties/maxDepth",
|
|
9
|
+
"keyword": "minimum",
|
|
10
|
+
"instance": 0,
|
|
11
|
+
"expectedCodes": ["SCHEMA_NUMBER_TOO_SMALL"]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"caseId": "interactions-config-invalid-e616b9856e2383b6",
|
|
15
|
+
"coveredRuleIds": [
|
|
16
|
+
"interactions-config:#/$defs/reactionDefinition/properties/order:minimum"
|
|
17
|
+
],
|
|
18
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
19
|
+
"schemaPointer": "#/$defs/reactionDefinition/properties/order",
|
|
20
|
+
"keyword": "minimum",
|
|
21
|
+
"instance": 0,
|
|
22
|
+
"expectedCodes": ["SCHEMA_NUMBER_TOO_SMALL"]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-invalid-5f5cb41967447a78",
|
|
4
|
+
"coveredRuleIds": ["interactions-config:#/$defs/reactionKey:pattern"],
|
|
5
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
6
|
+
"schemaPointer": "#/$defs/reactionKey",
|
|
7
|
+
"keyword": "pattern",
|
|
8
|
+
"instance": "",
|
|
9
|
+
"expectedCodes": ["SCHEMA_PATTERN_INVALID"]
|
|
10
|
+
}
|
|
11
|
+
]
|