@rathnasgala2/schemas 3.30.0 → 3.32.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.
Files changed (45) hide show
  1. package/THIRD_PARTY_LICENSES.json +1 -1
  2. package/diagnostics/diagnostic-map.json +119 -0
  3. package/docs/catalogs/schema-inventory.json +7 -7
  4. package/examples/valid/build-input/rules.json +126 -0
  5. package/examples/valid/interactions-config/rules.json +10 -0
  6. package/examples/valid/publication/rules.json +86 -0
  7. package/fixtures/boundary/build-input/rules.json +176 -0
  8. package/fixtures/boundary/interactions-config/rules.json +10 -0
  9. package/fixtures/boundary/publication/rules.json +132 -0
  10. package/fixtures/invalid/build-input/GRAPHEME_LENGTH_INVALID/cases.json +33 -0
  11. package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +30 -0
  12. package/fixtures/invalid/build-input/SCHEMA_ARRAY_DUPLICATE/cases.json +11 -0
  13. package/fixtures/invalid/build-input/SCHEMA_ARRAY_TOO_LONG/cases.json +15 -0
  14. package/fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json +11 -0
  15. package/fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_LARGE/cases.json +11 -0
  16. package/fixtures/invalid/build-input/SCHEMA_PATTERN_INVALID/cases.json +22 -0
  17. package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +51 -0
  18. package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +53 -0
  19. package/fixtures/invalid/interactions-config/SCHEMA_TYPE_INVALID/cases.json +11 -0
  20. package/fixtures/invalid/publication/GRAPHEME_LENGTH_INVALID/cases.json +33 -0
  21. package/fixtures/invalid/publication/REQUEST_FIELD_UNKNOWN/cases.json +30 -0
  22. package/fixtures/invalid/publication/SCHEMA_ARRAY_DUPLICATE/cases.json +9 -0
  23. package/fixtures/invalid/publication/SCHEMA_ARRAY_TOO_LONG/cases.json +13 -0
  24. package/fixtures/invalid/publication/SCHEMA_PATTERN_INVALID/cases.json +22 -0
  25. package/fixtures/invalid/publication/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +40 -0
  26. package/fixtures/invalid/publication/SCHEMA_TYPE_INVALID/cases.json +40 -0
  27. package/fixtures/manifest.json +943 -8
  28. package/fixtures/unknown-field/build-input/rules.json +50 -0
  29. package/fixtures/unknown-field/interactions-config/rules.json +1 -0
  30. package/fixtures/unknown-field/publication/rules.json +46 -0
  31. package/generated/browser/validator-core.mjs +3 -3
  32. package/generated/typescript/contracts/artifact-manifest.d.ts +4 -2
  33. package/generated/typescript/contracts/build-input.d.ts +16 -1
  34. package/generated/typescript/contracts/build-provenance.d.ts +4 -2
  35. package/generated/typescript/contracts/interactions-config.d.ts +1 -0
  36. package/generated/typescript/contracts/publication.d.ts +13 -0
  37. package/openapi/http-catalog.json +80 -2
  38. package/openapi/openapi.yaml +1721 -253
  39. package/package.json +1 -1
  40. package/sbom.cdx.json +23 -23
  41. package/schemas/artifact-manifest.schema.json +4 -2
  42. package/schemas/build-input.schema.json +64 -3
  43. package/schemas/build-provenance.schema.json +4 -2
  44. package/schemas/interactions-config.schema.json +6 -1
  45. package/schemas/publication.schema.json +48 -0
@@ -162,6 +162,9 @@
162
162
  "build-input:#/$defs/contentBuildMediaFile/allOf/2/if/properties/mediaType:enum",
163
163
  "build-input:#/$defs/contentBuildMediaFile/allOf/2/if:required:mediaType",
164
164
  "build-input:#/$defs/contentBuildMediaFile/allOf/2/then/properties/byteLength:maximum",
165
+ "build-input:#/$defs/contentBuildMediaFile/allOf/3/if/properties/mediaType:enum",
166
+ "build-input:#/$defs/contentBuildMediaFile/allOf/3/if:required:mediaType",
167
+ "build-input:#/$defs/contentBuildMediaFile/allOf/3/then/properties/byteLength:maximum",
165
168
  "build-input:#/$defs/contentBuildMediaFile/properties/byteLength:minimum",
166
169
  "build-input:#/$defs/contentBuildMediaFile/properties/byteLength:type",
167
170
  "build-input:#/$defs/contentBuildMediaFile/properties/mediaType:enum",
@@ -237,6 +240,7 @@
237
240
  "coveredRuleIds": [
238
241
  "build-input:#/$defs/interactionsConfig/properties/comments/properties/allowReplies:type",
239
242
  "build-input:#/$defs/interactionsConfig/properties/comments/properties/enabled:type",
243
+ "build-input:#/$defs/interactionsConfig/properties/comments/properties/likes:type",
240
244
  "build-input:#/$defs/interactionsConfig/properties/comments/properties/maxDepth:maximum",
241
245
  "build-input:#/$defs/interactionsConfig/properties/comments/properties/maxDepth:minimum",
242
246
  "build-input:#/$defs/interactionsConfig/properties/comments/properties/maxDepth:type",
@@ -843,6 +847,27 @@
843
847
  },
844
848
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
845
849
  },
850
+ {
851
+ "caseId": "build-input-unknown-37e8c21ac844f738",
852
+ "coveredRuleIds": [
853
+ "build-input:#/$defs/recommendation/properties/addedOn:pattern",
854
+ "build-input:#/$defs/recommendation/properties/addedOn:type",
855
+ "build-input:#/$defs/recommendation/properties/description:x-gala-graphemeLength",
856
+ "build-input:#/$defs/recommendation:additionalProperties",
857
+ "build-input:#/$defs/recommendation:required:title",
858
+ "build-input:#/$defs/recommendation:required:url",
859
+ "build-input:#/$defs/recommendation:type"
860
+ ],
861
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
862
+ "schemaPointer": "#/$defs/recommendation",
863
+ "keyword": "additionalProperties",
864
+ "instance": {
865
+ "url": "https://fixture-1.example.com/",
866
+ "title": "fixture-1",
867
+ "unexpected": true
868
+ },
869
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
870
+ },
846
871
  {
847
872
  "caseId": "build-input-unknown-394c7d1fa0c974a1",
848
873
  "coveredRuleIds": [
@@ -972,6 +997,10 @@
972
997
  "build-input:#/$defs/publicationNormalized/properties/authorIds:minItems",
973
998
  "build-input:#/$defs/publicationNormalized/properties/authorIds:type",
974
999
  "build-input:#/$defs/publicationNormalized/properties/description:x-gala-graphemeLength",
1000
+ "build-input:#/$defs/publicationNormalized/properties/recommendations:maxItems",
1001
+ "build-input:#/$defs/publicationNormalized/properties/recommendations:minItems",
1002
+ "build-input:#/$defs/publicationNormalized/properties/recommendations:type",
1003
+ "build-input:#/$defs/publicationNormalized/properties/recommendations:uniqueItems",
975
1004
  "build-input:#/$defs/publicationNormalized/properties/socialLinks:maxItems",
976
1005
  "build-input:#/$defs/publicationNormalized/properties/socialLinks:minItems",
977
1006
  "build-input:#/$defs/publicationNormalized/properties/socialLinks:type",
@@ -1025,6 +1054,27 @@
1025
1054
  "instance": { "website": false, "phone": false, "unexpected": true },
1026
1055
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
1027
1056
  },
1057
+ {
1058
+ "caseId": "build-input-unknown-49434124c429699e",
1059
+ "coveredRuleIds": [
1060
+ "build-input:#/$defs/newsletter/oneOf/1/properties/welcome/properties/body:x-gala-graphemeLength",
1061
+ "build-input:#/$defs/newsletter/oneOf/1/properties/welcome/properties/subject:pattern",
1062
+ "build-input:#/$defs/newsletter/oneOf/1/properties/welcome/properties/subject:x-gala-graphemeLength",
1063
+ "build-input:#/$defs/newsletter/oneOf/1/properties/welcome:additionalProperties",
1064
+ "build-input:#/$defs/newsletter/oneOf/1/properties/welcome:required:body",
1065
+ "build-input:#/$defs/newsletter/oneOf/1/properties/welcome:required:subject",
1066
+ "build-input:#/$defs/newsletter/oneOf/1/properties/welcome:type"
1067
+ ],
1068
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1069
+ "schemaPointer": "#/$defs/newsletter/oneOf/1/properties/welcome",
1070
+ "keyword": "additionalProperties",
1071
+ "instance": {
1072
+ "subject": "fixture-1",
1073
+ "body": "fixture-1",
1074
+ "unexpected": true
1075
+ },
1076
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
1077
+ },
1028
1078
  {
1029
1079
  "caseId": "build-input-unknown-4a804fdcaeda93f9",
1030
1080
  "coveredRuleIds": [
@@ -202,6 +202,7 @@
202
202
  "coveredRuleIds": [
203
203
  "interactions-config:#/properties/comments/properties/allowReplies:type",
204
204
  "interactions-config:#/properties/comments/properties/enabled:type",
205
+ "interactions-config:#/properties/comments/properties/likes:type",
205
206
  "interactions-config:#/properties/comments/properties/maxDepth:maximum",
206
207
  "interactions-config:#/properties/comments/properties/maxDepth:minimum",
207
208
  "interactions-config:#/properties/comments/properties/maxDepth:type",
@@ -166,6 +166,10 @@
166
166
  "publication:#/properties/authors:minItems",
167
167
  "publication:#/properties/authors:type",
168
168
  "publication:#/properties/description:x-gala-graphemeLength",
169
+ "publication:#/properties/recommendations:maxItems",
170
+ "publication:#/properties/recommendations:minItems",
171
+ "publication:#/properties/recommendations:type",
172
+ "publication:#/properties/recommendations:uniqueItems",
169
173
  "publication:#/properties/schemaId:const",
170
174
  "publication:#/properties/schemaVersion:const",
171
175
  "publication:#/properties/socialLinks:maxItems",
@@ -207,6 +211,48 @@
207
211
  },
208
212
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
209
213
  },
214
+ {
215
+ "caseId": "publication-unknown-37e8c21ac844f738",
216
+ "coveredRuleIds": [
217
+ "publication:#/$defs/recommendation/properties/addedOn:pattern",
218
+ "publication:#/$defs/recommendation/properties/addedOn:type",
219
+ "publication:#/$defs/recommendation/properties/description:x-gala-graphemeLength",
220
+ "publication:#/$defs/recommendation:additionalProperties",
221
+ "publication:#/$defs/recommendation:required:title",
222
+ "publication:#/$defs/recommendation:required:url",
223
+ "publication:#/$defs/recommendation:type"
224
+ ],
225
+ "schemaId": "urn:gala:schema:publication:2.0.0",
226
+ "schemaPointer": "#/$defs/recommendation",
227
+ "keyword": "additionalProperties",
228
+ "instance": {
229
+ "url": "https://fixture-1.example.com/",
230
+ "title": "fixture-1",
231
+ "unexpected": true
232
+ },
233
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
234
+ },
235
+ {
236
+ "caseId": "publication-unknown-49434124c429699e",
237
+ "coveredRuleIds": [
238
+ "publication:#/$defs/newsletter/oneOf/1/properties/welcome/properties/body:x-gala-graphemeLength",
239
+ "publication:#/$defs/newsletter/oneOf/1/properties/welcome/properties/subject:pattern",
240
+ "publication:#/$defs/newsletter/oneOf/1/properties/welcome/properties/subject:x-gala-graphemeLength",
241
+ "publication:#/$defs/newsletter/oneOf/1/properties/welcome:additionalProperties",
242
+ "publication:#/$defs/newsletter/oneOf/1/properties/welcome:required:body",
243
+ "publication:#/$defs/newsletter/oneOf/1/properties/welcome:required:subject",
244
+ "publication:#/$defs/newsletter/oneOf/1/properties/welcome:type"
245
+ ],
246
+ "schemaId": "urn:gala:schema:publication:2.0.0",
247
+ "schemaPointer": "#/$defs/newsletter/oneOf/1/properties/welcome",
248
+ "keyword": "additionalProperties",
249
+ "instance": {
250
+ "subject": "fixture-1",
251
+ "body": "fixture-1",
252
+ "unexpected": true
253
+ },
254
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
255
+ },
210
256
  {
211
257
  "caseId": "publication-unknown-5c61b1e8e9e78c3b",
212
258
  "coveredRuleIds": [