@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,227 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "interactions-config-unknown-32690b22292983d6",
|
|
4
|
+
"coveredRuleIds": [
|
|
5
|
+
"interactions-config:#/$defs/reactionDefinition/properties/enabled:type",
|
|
6
|
+
"interactions-config:#/$defs/reactionDefinition/properties/label:type",
|
|
7
|
+
"interactions-config:#/$defs/reactionDefinition/properties/label:x-gala-graphemeLength",
|
|
8
|
+
"interactions-config:#/$defs/reactionDefinition/properties/order:maximum",
|
|
9
|
+
"interactions-config:#/$defs/reactionDefinition/properties/order:minimum",
|
|
10
|
+
"interactions-config:#/$defs/reactionDefinition/properties/order:type",
|
|
11
|
+
"interactions-config:#/$defs/reactionDefinition:additionalProperties",
|
|
12
|
+
"interactions-config:#/$defs/reactionDefinition:required:enabled",
|
|
13
|
+
"interactions-config:#/$defs/reactionDefinition:required:key",
|
|
14
|
+
"interactions-config:#/$defs/reactionDefinition:required:label",
|
|
15
|
+
"interactions-config:#/$defs/reactionDefinition:required:order",
|
|
16
|
+
"interactions-config:#/$defs/reactionDefinition:required:visual",
|
|
17
|
+
"interactions-config:#/$defs/reactionDefinition:type"
|
|
18
|
+
],
|
|
19
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
20
|
+
"schemaPointer": "#/$defs/reactionDefinition",
|
|
21
|
+
"keyword": "additionalProperties",
|
|
22
|
+
"instance": {
|
|
23
|
+
"key": "fixture-1",
|
|
24
|
+
"label": "fixture-1",
|
|
25
|
+
"visual": { "kind": "emoji", "token": "👍" },
|
|
26
|
+
"order": 1,
|
|
27
|
+
"enabled": false,
|
|
28
|
+
"unexpected": true
|
|
29
|
+
},
|
|
30
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"caseId": "interactions-config-unknown-334359b90efed75d",
|
|
34
|
+
"coveredRuleIds": [
|
|
35
|
+
"interactions-config:#/$defs/bcp47:format",
|
|
36
|
+
"interactions-config:#/$defs/bcp47:maxLength",
|
|
37
|
+
"interactions-config:#/$defs/bcp47:minLength",
|
|
38
|
+
"interactions-config:#/$defs/bcp47:pattern",
|
|
39
|
+
"interactions-config:#/$defs/bcp47:type",
|
|
40
|
+
"interactions-config:#/$defs/bcp47:x-gala-utf8ByteLength",
|
|
41
|
+
"interactions-config:#/$defs/canonicalRoute:format",
|
|
42
|
+
"interactions-config:#/$defs/canonicalRoute:minLength",
|
|
43
|
+
"interactions-config:#/$defs/canonicalRoute:pattern",
|
|
44
|
+
"interactions-config:#/$defs/canonicalRoute:type",
|
|
45
|
+
"interactions-config:#/$defs/digest:pattern",
|
|
46
|
+
"interactions-config:#/$defs/digest:type",
|
|
47
|
+
"interactions-config:#/$defs/extensionKey:format",
|
|
48
|
+
"interactions-config:#/$defs/extensionKey:type",
|
|
49
|
+
"interactions-config:#/$defs/gitObjectId:pattern",
|
|
50
|
+
"interactions-config:#/$defs/gitObjectId:type",
|
|
51
|
+
"interactions-config:#/$defs/glob:format",
|
|
52
|
+
"interactions-config:#/$defs/glob:maxLength",
|
|
53
|
+
"interactions-config:#/$defs/glob:minLength",
|
|
54
|
+
"interactions-config:#/$defs/glob:type",
|
|
55
|
+
"interactions-config:#/$defs/glob:x-gala-utf8ByteLength",
|
|
56
|
+
"interactions-config:#/$defs/isoCountry:format",
|
|
57
|
+
"interactions-config:#/$defs/isoCountry:pattern",
|
|
58
|
+
"interactions-config:#/$defs/isoCountry:type",
|
|
59
|
+
"interactions-config:#/$defs/packageExact:format",
|
|
60
|
+
"interactions-config:#/$defs/packageExact:minLength",
|
|
61
|
+
"interactions-config:#/$defs/packageExact:pattern",
|
|
62
|
+
"interactions-config:#/$defs/packageExact:type",
|
|
63
|
+
"interactions-config:#/$defs/packageRange:format",
|
|
64
|
+
"interactions-config:#/$defs/packageRange:minLength",
|
|
65
|
+
"interactions-config:#/$defs/packageRange:pattern",
|
|
66
|
+
"interactions-config:#/$defs/packageRange:type",
|
|
67
|
+
"interactions-config:#/$defs/passiveVisualToken:false",
|
|
68
|
+
"interactions-config:#/$defs/plainLabel:format",
|
|
69
|
+
"interactions-config:#/$defs/plainLabel:type",
|
|
70
|
+
"interactions-config:#/$defs/plainLabel:x-gala-graphemeLength",
|
|
71
|
+
"interactions-config:#/$defs/plainText:format",
|
|
72
|
+
"interactions-config:#/$defs/plainText:type",
|
|
73
|
+
"interactions-config:#/$defs/reactionKey/not:const",
|
|
74
|
+
"interactions-config:#/$defs/reactionKey:not",
|
|
75
|
+
"interactions-config:#/$defs/reactionKey:pattern",
|
|
76
|
+
"interactions-config:#/$defs/reactionKey:type",
|
|
77
|
+
"interactions-config:#/$defs/repoRelativePath:format",
|
|
78
|
+
"interactions-config:#/$defs/repoRelativePath:maxLength",
|
|
79
|
+
"interactions-config:#/$defs/repoRelativePath:minLength",
|
|
80
|
+
"interactions-config:#/$defs/repoRelativePath:pattern",
|
|
81
|
+
"interactions-config:#/$defs/repoRelativePath:type",
|
|
82
|
+
"interactions-config:#/$defs/repoRelativePath:x-gala-utf8ByteLength",
|
|
83
|
+
"interactions-config:#/$defs/rfc3339:format",
|
|
84
|
+
"interactions-config:#/$defs/rfc3339:pattern",
|
|
85
|
+
"interactions-config:#/$defs/rfc3339:type",
|
|
86
|
+
"interactions-config:#/$defs/semver:pattern",
|
|
87
|
+
"interactions-config:#/$defs/semver:type",
|
|
88
|
+
"interactions-config:#/$defs/semverRange:format",
|
|
89
|
+
"interactions-config:#/$defs/semverRange:minLength",
|
|
90
|
+
"interactions-config:#/$defs/semverRange:pattern",
|
|
91
|
+
"interactions-config:#/$defs/semverRange:type",
|
|
92
|
+
"interactions-config:#/$defs/slug:maxLength",
|
|
93
|
+
"interactions-config:#/$defs/slug:minLength",
|
|
94
|
+
"interactions-config:#/$defs/slug:pattern",
|
|
95
|
+
"interactions-config:#/$defs/slug:type",
|
|
96
|
+
"interactions-config:#/$defs/stableId:pattern",
|
|
97
|
+
"interactions-config:#/$defs/stableId:type",
|
|
98
|
+
"interactions-config:#/$defs/urlHttps:format",
|
|
99
|
+
"interactions-config:#/$defs/urlHttps:pattern",
|
|
100
|
+
"interactions-config:#/$defs/urlHttps:type",
|
|
101
|
+
"interactions-config:#/$defs/urn:format",
|
|
102
|
+
"interactions-config:#/$defs/urn:maxLength",
|
|
103
|
+
"interactions-config:#/$defs/urn:minLength",
|
|
104
|
+
"interactions-config:#/$defs/urn:pattern",
|
|
105
|
+
"interactions-config:#/$defs/urn:type",
|
|
106
|
+
"interactions-config:#/properties/schemaId:const",
|
|
107
|
+
"interactions-config:#/properties/schemaVersion:const",
|
|
108
|
+
"interactions-config:#:additionalProperties",
|
|
109
|
+
"interactions-config:#:required:comments",
|
|
110
|
+
"interactions-config:#:required:publicCounts",
|
|
111
|
+
"interactions-config:#:required:reactions",
|
|
112
|
+
"interactions-config:#:required:schemaId",
|
|
113
|
+
"interactions-config:#:required:schemaVersion",
|
|
114
|
+
"interactions-config:#:type"
|
|
115
|
+
],
|
|
116
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
117
|
+
"schemaPointer": "#",
|
|
118
|
+
"keyword": "additionalProperties",
|
|
119
|
+
"instance": {
|
|
120
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
121
|
+
"schemaVersion": "2.0.0",
|
|
122
|
+
"reactions": {
|
|
123
|
+
"enabled": false,
|
|
124
|
+
"definitions": [
|
|
125
|
+
{
|
|
126
|
+
"key": "fixture-1",
|
|
127
|
+
"label": "fixture-1",
|
|
128
|
+
"visual": { "kind": "emoji", "token": "👍" },
|
|
129
|
+
"order": 1,
|
|
130
|
+
"enabled": false
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"comments": { "enabled": false, "allowReplies": false, "maxDepth": 1 },
|
|
135
|
+
"publicCounts": { "reactions": false, "comments": false },
|
|
136
|
+
"unexpected": true
|
|
137
|
+
},
|
|
138
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"caseId": "interactions-config-unknown-38eb03f36cd27aef",
|
|
142
|
+
"coveredRuleIds": [
|
|
143
|
+
"interactions-config:#/properties/reactions/properties/definitions:maxItems",
|
|
144
|
+
"interactions-config:#/properties/reactions/properties/definitions:minItems",
|
|
145
|
+
"interactions-config:#/properties/reactions/properties/definitions:type",
|
|
146
|
+
"interactions-config:#/properties/reactions/properties/enabled:type",
|
|
147
|
+
"interactions-config:#/properties/reactions:additionalProperties",
|
|
148
|
+
"interactions-config:#/properties/reactions:required:definitions",
|
|
149
|
+
"interactions-config:#/properties/reactions:required:enabled",
|
|
150
|
+
"interactions-config:#/properties/reactions:type"
|
|
151
|
+
],
|
|
152
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
153
|
+
"schemaPointer": "#/properties/reactions",
|
|
154
|
+
"keyword": "additionalProperties",
|
|
155
|
+
"instance": {
|
|
156
|
+
"enabled": false,
|
|
157
|
+
"definitions": [
|
|
158
|
+
{
|
|
159
|
+
"key": "fixture-1",
|
|
160
|
+
"label": "fixture-1",
|
|
161
|
+
"visual": { "kind": "emoji", "token": "👍" },
|
|
162
|
+
"order": 1,
|
|
163
|
+
"enabled": false
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"unexpected": true
|
|
167
|
+
},
|
|
168
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"caseId": "interactions-config-unknown-4300914392f6e0e9",
|
|
172
|
+
"coveredRuleIds": [
|
|
173
|
+
"interactions-config:#/properties/publicCounts/properties/comments:type",
|
|
174
|
+
"interactions-config:#/properties/publicCounts/properties/reactions:type",
|
|
175
|
+
"interactions-config:#/properties/publicCounts:additionalProperties",
|
|
176
|
+
"interactions-config:#/properties/publicCounts:required:comments",
|
|
177
|
+
"interactions-config:#/properties/publicCounts:required:reactions",
|
|
178
|
+
"interactions-config:#/properties/publicCounts:type"
|
|
179
|
+
],
|
|
180
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
181
|
+
"schemaPointer": "#/properties/publicCounts",
|
|
182
|
+
"keyword": "additionalProperties",
|
|
183
|
+
"instance": { "reactions": false, "comments": false, "unexpected": true },
|
|
184
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"caseId": "interactions-config-unknown-4c5e3a7c692b3f82",
|
|
188
|
+
"coveredRuleIds": [
|
|
189
|
+
"interactions-config:#/properties/comments/properties/allowReplies:type",
|
|
190
|
+
"interactions-config:#/properties/comments/properties/enabled:type",
|
|
191
|
+
"interactions-config:#/properties/comments/properties/maxDepth:maximum",
|
|
192
|
+
"interactions-config:#/properties/comments/properties/maxDepth:minimum",
|
|
193
|
+
"interactions-config:#/properties/comments/properties/maxDepth:type",
|
|
194
|
+
"interactions-config:#/properties/comments:additionalProperties",
|
|
195
|
+
"interactions-config:#/properties/comments:required:allowReplies",
|
|
196
|
+
"interactions-config:#/properties/comments:required:enabled",
|
|
197
|
+
"interactions-config:#/properties/comments:required:maxDepth",
|
|
198
|
+
"interactions-config:#/properties/comments:type"
|
|
199
|
+
],
|
|
200
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
201
|
+
"schemaPointer": "#/properties/comments",
|
|
202
|
+
"keyword": "additionalProperties",
|
|
203
|
+
"instance": {
|
|
204
|
+
"enabled": false,
|
|
205
|
+
"allowReplies": false,
|
|
206
|
+
"maxDepth": 1,
|
|
207
|
+
"unexpected": true
|
|
208
|
+
},
|
|
209
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"caseId": "interactions-config-unknown-e33d59edd841db65",
|
|
213
|
+
"coveredRuleIds": [
|
|
214
|
+
"interactions-config:#/$defs/reactionVisual/properties/kind:const",
|
|
215
|
+
"interactions-config:#/$defs/reactionVisual/properties/token:enum",
|
|
216
|
+
"interactions-config:#/$defs/reactionVisual:additionalProperties",
|
|
217
|
+
"interactions-config:#/$defs/reactionVisual:required:kind",
|
|
218
|
+
"interactions-config:#/$defs/reactionVisual:required:token",
|
|
219
|
+
"interactions-config:#/$defs/reactionVisual:type"
|
|
220
|
+
],
|
|
221
|
+
"schemaId": "urn:gala:schema:interactions-config:2.0.0",
|
|
222
|
+
"schemaPointer": "#/$defs/reactionVisual",
|
|
223
|
+
"keyword": "additionalProperties",
|
|
224
|
+
"instance": { "kind": "emoji", "token": "👍", "unexpected": true },
|
|
225
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
226
|
+
}
|
|
227
|
+
]
|