@rathnasgala2/schemas 3.25.0 → 3.26.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 (55) hide show
  1. package/THIRD_PARTY_LICENSES.json +1 -1
  2. package/diagnostics/diagnostic-map.json +174 -0
  3. package/docs/catalogs/app-routes.json +3 -1
  4. package/docs/catalogs/schema-inventory.json +6 -6
  5. package/examples/valid/build-input/rules.json +147 -0
  6. package/examples/valid/content-frontmatter/rules.json +76 -0
  7. package/examples/valid/problem/rules.json +64 -0
  8. package/examples/valid/publication/rules.json +20 -0
  9. package/fixtures/boundary/build-input/rules.json +165 -0
  10. package/fixtures/boundary/content-frontmatter/rules.json +85 -0
  11. package/fixtures/boundary/problem/rules.json +64 -0
  12. package/fixtures/boundary/publication/rules.json +20 -0
  13. package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +45 -0
  14. package/fixtures/invalid/build-input/SCHEMA_CONSTANT_INVALID/cases.json +11 -0
  15. package/fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json +22 -0
  16. package/fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_LARGE/cases.json +22 -0
  17. package/fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_SMALL/cases.json +22 -0
  18. package/fixtures/invalid/build-input/SCHEMA_PATTERN_INVALID/cases.json +11 -0
  19. package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +132 -0
  20. package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +56 -0
  21. package/fixtures/invalid/content-frontmatter/REQUEST_FIELD_UNKNOWN/cases.json +16 -0
  22. package/fixtures/invalid/content-frontmatter/SCHEMA_CONSTANT_INVALID/cases.json +11 -0
  23. package/fixtures/invalid/content-frontmatter/SCHEMA_ENUM_INVALID/cases.json +11 -0
  24. package/fixtures/invalid/content-frontmatter/SCHEMA_NUMBER_TOO_LARGE/cases.json +11 -0
  25. package/fixtures/invalid/content-frontmatter/SCHEMA_NUMBER_TOO_SMALL/cases.json +11 -0
  26. package/fixtures/invalid/content-frontmatter/SCHEMA_PATTERN_INVALID/cases.json +11 -0
  27. package/fixtures/invalid/content-frontmatter/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +54 -0
  28. package/fixtures/invalid/content-frontmatter/SCHEMA_TYPE_INVALID/cases.json +20 -0
  29. package/fixtures/invalid/problem/REQUEST_FIELD_UNKNOWN/cases.json +15 -0
  30. package/fixtures/invalid/problem/SCHEMA_NUMBER_TOO_SMALL/cases.json +44 -0
  31. package/fixtures/invalid/problem/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +56 -0
  32. package/fixtures/invalid/problem/SCHEMA_TYPE_INVALID/cases.json +53 -0
  33. package/fixtures/invalid/publication/REQUEST_FIELD_UNKNOWN/cases.json +9 -0
  34. package/fixtures/invalid/publication/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +9 -0
  35. package/fixtures/invalid/publication/SCHEMA_TYPE_INVALID/cases.json +18 -0
  36. package/fixtures/manifest.json +1342 -8
  37. package/fixtures/s2/manifest.json +16 -1
  38. package/fixtures/s2/normalized-inputs.json +3225 -0
  39. package/fixtures/unknown-field/build-input/rules.json +73 -0
  40. package/fixtures/unknown-field/content-frontmatter/rules.json +28 -0
  41. package/fixtures/unknown-field/problem/rules.json +30 -0
  42. package/fixtures/unknown-field/publication/rules.json +14 -0
  43. package/generated/browser/validator-core.mjs +3 -3
  44. package/generated/typescript/contracts/build-input.d.ts +19 -0
  45. package/generated/typescript/contracts/content-frontmatter.d.ts +7 -0
  46. package/generated/typescript/contracts/problem.d.ts +6 -0
  47. package/generated/typescript/contracts/publication.d.ts +5 -0
  48. package/openapi/http-catalog.json +28 -2
  49. package/openapi/openapi.yaml +650 -11
  50. package/package.json +1 -1
  51. package/sbom.cdx.json +23 -23
  52. package/schemas/build-input.schema.json +62 -1
  53. package/schemas/content-frontmatter.schema.json +31 -0
  54. package/schemas/problem.schema.json +17 -0
  55. package/schemas/publication.schema.json +8 -0
@@ -1111,6 +1111,35 @@
1111
1111
  },
1112
1112
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
1113
1113
  },
1114
+ {
1115
+ "caseId": "build-input-unknown-50723dbc1ed1435a",
1116
+ "coveredRuleIds": [
1117
+ "build-input:#/$defs/contentListenNormalized/properties/durationSeconds:maximum",
1118
+ "build-input:#/$defs/contentListenNormalized/properties/durationSeconds:minimum",
1119
+ "build-input:#/$defs/contentListenNormalized/properties/durationSeconds:type",
1120
+ "build-input:#/$defs/contentListenNormalized/properties/format:enum",
1121
+ "build-input:#/$defs/contentListenNormalized:additionalProperties",
1122
+ "build-input:#/$defs/contentListenNormalized:required:audio",
1123
+ "build-input:#/$defs/contentListenNormalized:required:durationSeconds",
1124
+ "build-input:#/$defs/contentListenNormalized:required:format",
1125
+ "build-input:#/$defs/contentListenNormalized:type"
1126
+ ],
1127
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1128
+ "schemaPointer": "#/$defs/contentListenNormalized",
1129
+ "keyword": "additionalProperties",
1130
+ "instance": {
1131
+ "audio": {
1132
+ "sourcePath": "assets/listen/fixture.mp3",
1133
+ "mediaType": "audio/mpeg",
1134
+ "bytes": 1,
1135
+ "sha256": "sha256:0000000000000000000000000000000000000000000000000000000000000001"
1136
+ },
1137
+ "durationSeconds": 1,
1138
+ "format": "conversation",
1139
+ "unexpected": true
1140
+ },
1141
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
1142
+ },
1114
1143
  {
1115
1144
  "caseId": "build-input-unknown-53a189b729c940c9",
1116
1145
  "coveredRuleIds": [
@@ -1553,6 +1582,33 @@
1553
1582
  },
1554
1583
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
1555
1584
  },
1585
+ {
1586
+ "caseId": "build-input-unknown-dd448fa0942e16fa",
1587
+ "coveredRuleIds": [
1588
+ "build-input:#/$defs/listenAudio/properties/bytes:maximum",
1589
+ "build-input:#/$defs/listenAudio/properties/bytes:minimum",
1590
+ "build-input:#/$defs/listenAudio/properties/bytes:type",
1591
+ "build-input:#/$defs/listenAudio/properties/mediaType:enum",
1592
+ "build-input:#/$defs/listenAudio/properties/sourcePath:pattern",
1593
+ "build-input:#/$defs/listenAudio:additionalProperties",
1594
+ "build-input:#/$defs/listenAudio:required:bytes",
1595
+ "build-input:#/$defs/listenAudio:required:mediaType",
1596
+ "build-input:#/$defs/listenAudio:required:sha256",
1597
+ "build-input:#/$defs/listenAudio:required:sourcePath",
1598
+ "build-input:#/$defs/listenAudio:type"
1599
+ ],
1600
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1601
+ "schemaPointer": "#/$defs/listenAudio",
1602
+ "keyword": "additionalProperties",
1603
+ "instance": {
1604
+ "sourcePath": "assets/listen/fixture.mp3",
1605
+ "mediaType": "audio/mpeg",
1606
+ "bytes": 1,
1607
+ "sha256": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
1608
+ "unexpected": true
1609
+ },
1610
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
1611
+ },
1556
1612
  {
1557
1613
  "caseId": "build-input-unknown-ddf7847f1333a8c9",
1558
1614
  "coveredRuleIds": [
@@ -1762,6 +1818,20 @@
1762
1818
  },
1763
1819
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
1764
1820
  },
1821
+ {
1822
+ "caseId": "build-input-unknown-fc29fea60e320af0",
1823
+ "coveredRuleIds": [
1824
+ "build-input:#/$defs/listen/properties/enabled:type",
1825
+ "build-input:#/$defs/listen:additionalProperties",
1826
+ "build-input:#/$defs/listen:required:enabled",
1827
+ "build-input:#/$defs/listen:type"
1828
+ ],
1829
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1830
+ "schemaPointer": "#/$defs/listen",
1831
+ "keyword": "additionalProperties",
1832
+ "instance": { "enabled": false, "unexpected": true },
1833
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
1834
+ },
1765
1835
  {
1766
1836
  "caseId": "build-input-unknown-fc3cc67b44d0a9c0",
1767
1837
  "coveredRuleIds": [
@@ -1775,6 +1845,9 @@
1775
1845
  "build-input:#/$defs/contentFrontmatterNormalized/allOf/1/then/properties/kind:const",
1776
1846
  "build-input:#/$defs/contentFrontmatterNormalized/allOf/1/then:not",
1777
1847
  "build-input:#/$defs/contentFrontmatterNormalized/allOf/1/then:required:kind",
1848
+ "build-input:#/$defs/contentFrontmatterNormalized/allOf/2/if:required:listen",
1849
+ "build-input:#/$defs/contentFrontmatterNormalized/allOf/2/then/properties/kind:const",
1850
+ "build-input:#/$defs/contentFrontmatterNormalized/allOf/2/then:required:kind",
1778
1851
  "build-input:#/$defs/contentFrontmatterNormalized/properties/authorIds:maxItems",
1779
1852
  "build-input:#/$defs/contentFrontmatterNormalized/properties/authorIds:minItems",
1780
1853
  "build-input:#/$defs/contentFrontmatterNormalized/properties/authorIds:type",
@@ -92,6 +92,9 @@
92
92
  "content-frontmatter:#/allOf/2/then/properties/kind:const",
93
93
  "content-frontmatter:#/allOf/2/then:not",
94
94
  "content-frontmatter:#/allOf/2/then:required:kind",
95
+ "content-frontmatter:#/allOf/3/if:required:listen",
96
+ "content-frontmatter:#/allOf/3/then/properties/kind:const",
97
+ "content-frontmatter:#/allOf/3/then:required:kind",
95
98
  "content-frontmatter:#/properties/authors:maxItems",
96
99
  "content-frontmatter:#/properties/authors:minItems",
97
100
  "content-frontmatter:#/properties/authors:type",
@@ -180,6 +183,31 @@
180
183
  },
181
184
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
182
185
  },
186
+ {
187
+ "caseId": "content-frontmatter-unknown-b609ef26b8c0ae06",
188
+ "coveredRuleIds": [
189
+ "content-frontmatter:#/$defs/contentListen/properties/audio:pattern",
190
+ "content-frontmatter:#/$defs/contentListen/properties/durationSeconds:maximum",
191
+ "content-frontmatter:#/$defs/contentListen/properties/durationSeconds:minimum",
192
+ "content-frontmatter:#/$defs/contentListen/properties/durationSeconds:type",
193
+ "content-frontmatter:#/$defs/contentListen/properties/format:enum",
194
+ "content-frontmatter:#/$defs/contentListen:additionalProperties",
195
+ "content-frontmatter:#/$defs/contentListen:required:audio",
196
+ "content-frontmatter:#/$defs/contentListen:required:durationSeconds",
197
+ "content-frontmatter:#/$defs/contentListen:required:format",
198
+ "content-frontmatter:#/$defs/contentListen:type"
199
+ ],
200
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
201
+ "schemaPointer": "#/$defs/contentListen",
202
+ "keyword": "additionalProperties",
203
+ "instance": {
204
+ "audio": "assets/listen/fixture.mp3",
205
+ "durationSeconds": 1,
206
+ "format": "conversation",
207
+ "unexpected": true
208
+ },
209
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
210
+ },
183
211
  {
184
212
  "caseId": "content-frontmatter-unknown-be70835e9e5e5534",
185
213
  "coveredRuleIds": [
@@ -126,6 +126,36 @@
126
126
  },
127
127
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
128
128
  },
129
+ {
130
+ "caseId": "problem-unknown-86763b9cdec57c80",
131
+ "coveredRuleIds": [
132
+ "problem:#/properties/details/properties/candidatePageCount:minimum",
133
+ "problem:#/properties/details/properties/candidatePageCount:type",
134
+ "problem:#/properties/details/properties/lostPageCount:minimum",
135
+ "problem:#/properties/details/properties/lostPageCount:type",
136
+ "problem:#/properties/details/properties/permittedLoss:minimum",
137
+ "problem:#/properties/details/properties/permittedLoss:type",
138
+ "problem:#/properties/details/properties/previousPageCount:minimum",
139
+ "problem:#/properties/details/properties/previousPageCount:type",
140
+ "problem:#/properties/details:additionalProperties",
141
+ "problem:#/properties/details:required:candidatePageCount",
142
+ "problem:#/properties/details:required:lostPageCount",
143
+ "problem:#/properties/details:required:permittedLoss",
144
+ "problem:#/properties/details:required:previousPageCount",
145
+ "problem:#/properties/details:type"
146
+ ],
147
+ "schemaId": "urn:gala:schema:problem:2.0.0",
148
+ "schemaPointer": "#/properties/details",
149
+ "keyword": "additionalProperties",
150
+ "instance": {
151
+ "previousPageCount": 0,
152
+ "candidatePageCount": 0,
153
+ "lostPageCount": 0,
154
+ "permittedLoss": 0,
155
+ "unexpected": true
156
+ },
157
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
158
+ },
129
159
  {
130
160
  "caseId": "problem-unknown-d807190cb4d170d1",
131
161
  "coveredRuleIds": [
@@ -406,5 +406,19 @@
406
406
  "unexpected": true
407
407
  },
408
408
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
409
+ },
410
+ {
411
+ "caseId": "publication-unknown-fc29fea60e320af0",
412
+ "coveredRuleIds": [
413
+ "publication:#/$defs/listen/properties/enabled:type",
414
+ "publication:#/$defs/listen:additionalProperties",
415
+ "publication:#/$defs/listen:required:enabled",
416
+ "publication:#/$defs/listen:type"
417
+ ],
418
+ "schemaId": "urn:gala:schema:publication:2.0.0",
419
+ "schemaPointer": "#/$defs/listen",
420
+ "keyword": "additionalProperties",
421
+ "instance": { "enabled": false, "unexpected": true },
422
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
409
423
  }
410
424
  ]