@rathnasgala2/schemas 3.25.1 → 3.27.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/THIRD_PARTY_LICENSES.json +1 -1
- package/diagnostics/diagnostic-map.json +132 -0
- package/docs/catalogs/app-routes.json +3 -1
- package/docs/catalogs/schema-inventory.json +5 -5
- package/examples/valid/build-input/rules.json +147 -0
- package/examples/valid/content-frontmatter/rules.json +76 -0
- package/examples/valid/publication/rules.json +20 -0
- package/fixtures/boundary/build-input/rules.json +165 -0
- package/fixtures/boundary/content-frontmatter/rules.json +85 -0
- package/fixtures/boundary/publication/rules.json +20 -0
- package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +45 -0
- package/fixtures/invalid/build-input/SCHEMA_CONSTANT_INVALID/cases.json +11 -0
- package/fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json +22 -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_PATTERN_INVALID/cases.json +11 -0
- package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +132 -0
- package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +56 -0
- package/fixtures/invalid/content-frontmatter/REQUEST_FIELD_UNKNOWN/cases.json +16 -0
- package/fixtures/invalid/content-frontmatter/SCHEMA_CONSTANT_INVALID/cases.json +11 -0
- package/fixtures/invalid/content-frontmatter/SCHEMA_ENUM_INVALID/cases.json +11 -0
- package/fixtures/invalid/content-frontmatter/SCHEMA_NUMBER_TOO_LARGE/cases.json +11 -0
- package/fixtures/invalid/content-frontmatter/SCHEMA_NUMBER_TOO_SMALL/cases.json +11 -0
- package/fixtures/invalid/content-frontmatter/SCHEMA_PATTERN_INVALID/cases.json +11 -0
- package/fixtures/invalid/content-frontmatter/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +54 -0
- package/fixtures/invalid/content-frontmatter/SCHEMA_TYPE_INVALID/cases.json +20 -0
- package/fixtures/invalid/publication/REQUEST_FIELD_UNKNOWN/cases.json +9 -0
- package/fixtures/invalid/publication/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +9 -0
- package/fixtures/invalid/publication/SCHEMA_TYPE_INVALID/cases.json +18 -0
- package/fixtures/manifest.json +1018 -6
- package/fixtures/s2/manifest.json +16 -1
- package/fixtures/s2/normalized-inputs.json +3225 -0
- package/fixtures/unknown-field/build-input/rules.json +73 -0
- package/fixtures/unknown-field/content-frontmatter/rules.json +28 -0
- package/fixtures/unknown-field/publication/rules.json +14 -0
- package/generated/browser/validator-core.mjs +3 -3
- package/generated/typescript/contracts/build-input.d.ts +19 -0
- package/generated/typescript/contracts/content-frontmatter.d.ts +7 -0
- package/generated/typescript/contracts/publication.d.ts +5 -0
- package/openapi/http-catalog.json +28 -2
- package/openapi/openapi.yaml +523 -10
- package/package.json +1 -1
- package/sbom.cdx.json +23 -23
- package/schemas/build-input.schema.json +62 -1
- package/schemas/content-frontmatter.schema.json +31 -0
- 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": [
|
|
@@ -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
|
]
|