@rathnasgala2/schemas 3.2.0 → 3.3.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 (42) hide show
  1. package/README.md +12 -9
  2. package/THIRD_PARTY_LICENSES.json +1 -1
  3. package/diagnostics/diagnostic-map.json +138 -0
  4. package/docs/catalogs/app-components.json +589 -1
  5. package/docs/catalogs/app-routes.json +327 -11
  6. package/docs/catalogs/schema-inventory.json +5 -5
  7. package/examples/valid/appearance/rules.json +22 -0
  8. package/examples/valid/build-input/rules.json +136 -0
  9. package/examples/valid/content-frontmatter/rules.json +108 -0
  10. package/fixtures/boundary/appearance/rules.json +22 -0
  11. package/fixtures/boundary/build-input/rules.json +136 -0
  12. package/fixtures/boundary/content-frontmatter/rules.json +108 -0
  13. package/fixtures/invalid/appearance/REQUEST_FIELD_UNKNOWN/cases.json +9 -0
  14. package/fixtures/invalid/appearance/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +9 -0
  15. package/fixtures/invalid/appearance/SCHEMA_TYPE_INVALID/cases.json +20 -0
  16. package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +47 -0
  17. package/fixtures/invalid/build-input/SCHEMA_CONSTANT_INVALID/cases.json +11 -0
  18. package/fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json +22 -0
  19. package/fixtures/invalid/build-input/SCHEMA_NEGATED_RULE_MATCHED/cases.json +11 -0
  20. package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +173 -0
  21. package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +40 -0
  22. package/fixtures/invalid/content-frontmatter/REQUEST_FIELD_UNKNOWN/cases.json +38 -0
  23. package/fixtures/invalid/content-frontmatter/SCHEMA_CONSTANT_INVALID/cases.json +11 -0
  24. package/fixtures/invalid/content-frontmatter/SCHEMA_ENUM_INVALID/cases.json +22 -0
  25. package/fixtures/invalid/content-frontmatter/SCHEMA_NEGATED_RULE_MATCHED/cases.json +9 -0
  26. package/fixtures/invalid/content-frontmatter/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +164 -0
  27. package/fixtures/invalid/content-frontmatter/SCHEMA_TYPE_INVALID/cases.json +20 -0
  28. package/fixtures/manifest.json +1064 -6
  29. package/fixtures/unknown-field/appearance/rules.json +14 -0
  30. package/fixtures/unknown-field/build-input/rules.json +69 -0
  31. package/fixtures/unknown-field/content-frontmatter/rules.json +55 -0
  32. package/generated/browser/validator-core.mjs +3 -3
  33. package/generated/typescript/contracts/appearance.d.ts +5 -0
  34. package/generated/typescript/contracts/build-input.d.ts +21 -2
  35. package/generated/typescript/contracts/content-frontmatter.d.ts +14 -1
  36. package/openapi/http-catalog.json +537 -9
  37. package/openapi/openapi.yaml +17627 -4276
  38. package/package.json +1 -1
  39. package/sbom.cdx.json +23 -23
  40. package/schemas/appearance.schema.json +8 -0
  41. package/schemas/build-input.schema.json +44 -3
  42. package/schemas/content-frontmatter.schema.json +32 -1
@@ -15,6 +15,44 @@
15
15
  },
16
16
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
17
17
  },
18
+ {
19
+ "caseId": "content-frontmatter-invalid-61131d532fb42f13",
20
+ "coveredRuleIds": [
21
+ "content-frontmatter:#/$defs/contentEdition/properties/generation:additionalProperties"
22
+ ],
23
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
24
+ "schemaPointer": "#/$defs/contentEdition/properties/generation",
25
+ "keyword": "additionalProperties",
26
+ "instance": {
27
+ "provider": "anthropic",
28
+ "model": "fixture-1",
29
+ "generationId": "019c0000-0000-7000-8000-000000000001",
30
+ "unexpected": true
31
+ },
32
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
33
+ },
34
+ {
35
+ "caseId": "content-frontmatter-invalid-74f8169f2f3889a9",
36
+ "coveredRuleIds": [
37
+ "content-frontmatter:#/$defs/contentEdition:additionalProperties"
38
+ ],
39
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
40
+ "schemaPointer": "#/$defs/contentEdition",
41
+ "keyword": "additionalProperties",
42
+ "instance": {
43
+ "of": "fixture-1",
44
+ "kind": "QUICK_READ",
45
+ "sourceDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
46
+ "generation": {
47
+ "provider": "anthropic",
48
+ "model": "fixture-1",
49
+ "generationId": "019c0000-0000-7000-8000-000000000001"
50
+ },
51
+ "approvedAt": "2026-09-13T12:00:00.000Z",
52
+ "unexpected": true
53
+ },
54
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
55
+ },
18
56
  {
19
57
  "caseId": "content-frontmatter-invalid-b8114600c3259a14",
20
58
  "coveredRuleIds": ["content-frontmatter:#:additionalProperties"],
@@ -20,5 +20,16 @@
20
20
  "keyword": "const",
21
21
  "instance": "decorative-invalid",
22
22
  "expectedCodes": ["SCHEMA_CONSTANT_INVALID"]
23
+ },
24
+ {
25
+ "caseId": "content-frontmatter-invalid-623683b1e332c043",
26
+ "coveredRuleIds": [
27
+ "content-frontmatter:#/allOf/1/if/properties/kind:const"
28
+ ],
29
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
30
+ "schemaPointer": "#/allOf/1/if/properties/kind",
31
+ "keyword": "const",
32
+ "instance": "edition-invalid",
33
+ "expectedCodes": ["SCHEMA_CONSTANT_INVALID"]
23
34
  }
24
35
  ]
@@ -10,6 +10,17 @@
10
10
  "instance": "__invalid_enum__",
11
11
  "expectedCodes": ["SCHEMA_ENUM_INVALID"]
12
12
  },
13
+ {
14
+ "caseId": "content-frontmatter-invalid-56a9de6038fafe47",
15
+ "coveredRuleIds": [
16
+ "content-frontmatter:#/$defs/contentEdition/properties/kind:enum"
17
+ ],
18
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
19
+ "schemaPointer": "#/$defs/contentEdition/properties/kind",
20
+ "keyword": "enum",
21
+ "instance": "__invalid_enum__",
22
+ "expectedCodes": ["SCHEMA_ENUM_INVALID"]
23
+ },
13
24
  {
14
25
  "caseId": "content-frontmatter-invalid-791d047f8b5a1b85",
15
26
  "coveredRuleIds": [
@@ -30,6 +41,17 @@
30
41
  "instance": "__invalid_enum__",
31
42
  "expectedCodes": ["SCHEMA_ENUM_INVALID"]
32
43
  },
44
+ {
45
+ "caseId": "content-frontmatter-invalid-85516cd0906e1809",
46
+ "coveredRuleIds": [
47
+ "content-frontmatter:#/$defs/contentEdition/properties/generation/properties/provider:enum"
48
+ ],
49
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
50
+ "schemaPointer": "#/$defs/contentEdition/properties/generation/properties/provider",
51
+ "keyword": "enum",
52
+ "instance": "__invalid_enum__",
53
+ "expectedCodes": ["SCHEMA_ENUM_INVALID"]
54
+ },
33
55
  {
34
56
  "caseId": "content-frontmatter-invalid-c54fc918801ec4bb",
35
57
  "coveredRuleIds": ["content-frontmatter:#/properties/status:enum"],
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "caseId": "content-frontmatter-invalid-4c56068b5540d39e",
4
+ "coveredRuleIds": ["content-frontmatter:#/allOf/1/else:not"],
5
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
6
+ "schemaPointer": "#/allOf/1/else",
7
+ "keyword": "not",
8
+ "instance": { "edition": null },
9
+ "expectedCodes": ["SCHEMA_NEGATED_RULE_MATCHED"]
10
+ },
2
11
  {
3
12
  "caseId": "content-frontmatter-invalid-f250ff5bc97d42ea",
4
13
  "coveredRuleIds": ["content-frontmatter:#/allOf/0/else:not"],
@@ -10,6 +10,49 @@
10
10
  "instance": {},
11
11
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
12
12
  },
13
+ {
14
+ "caseId": "content-frontmatter-invalid-06fbec508d0d1ba2",
15
+ "coveredRuleIds": [
16
+ "content-frontmatter:#/$defs/contentEdition:required:approvedAt"
17
+ ],
18
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
19
+ "schemaPointer": "#/$defs/contentEdition",
20
+ "keyword": "required",
21
+ "instance": {
22
+ "of": "fixture-1",
23
+ "kind": "QUICK_READ",
24
+ "sourceDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
25
+ "generation": {
26
+ "provider": "anthropic",
27
+ "model": "fixture-1",
28
+ "generationId": "019c0000-0000-7000-8000-000000000001"
29
+ }
30
+ },
31
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
32
+ },
33
+ {
34
+ "caseId": "content-frontmatter-invalid-086a61217ec24fe7",
35
+ "coveredRuleIds": ["content-frontmatter:#/allOf/1/then:required:edition"],
36
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
37
+ "schemaPointer": "#/allOf/1/then",
38
+ "keyword": "required",
39
+ "instance": {},
40
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
41
+ },
42
+ {
43
+ "caseId": "content-frontmatter-invalid-1cce74bde869b810",
44
+ "coveredRuleIds": [
45
+ "content-frontmatter:#/$defs/contentEdition/properties/generation:required:model"
46
+ ],
47
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
48
+ "schemaPointer": "#/$defs/contentEdition/properties/generation",
49
+ "keyword": "required",
50
+ "instance": {
51
+ "provider": "anthropic",
52
+ "generationId": "019c0000-0000-7000-8000-000000000001"
53
+ },
54
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
55
+ },
13
56
  {
14
57
  "caseId": "content-frontmatter-invalid-24fef83402bfea4d",
15
58
  "coveredRuleIds": ["content-frontmatter:#:required:redirects"],
@@ -85,6 +128,22 @@
85
128
  },
86
129
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
87
130
  },
131
+ {
132
+ "caseId": "content-frontmatter-invalid-3621fe7218887bda",
133
+ "coveredRuleIds": [
134
+ "content-frontmatter:#/$defs/contentEdition:required:generation"
135
+ ],
136
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
137
+ "schemaPointer": "#/$defs/contentEdition",
138
+ "keyword": "required",
139
+ "instance": {
140
+ "of": "fixture-1",
141
+ "kind": "QUICK_READ",
142
+ "sourceDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
143
+ "approvedAt": "2026-09-13T12:00:00.000Z"
144
+ },
145
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
146
+ },
88
147
  {
89
148
  "caseId": "content-frontmatter-invalid-4e2e00a793f19e4a",
90
149
  "coveredRuleIds": ["content-frontmatter:#/$defs/mediaRef:required:alt"],
@@ -94,6 +153,17 @@
94
153
  "instance": { "path": "content/fixture-1.md", "role": "informative" },
95
154
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
96
155
  },
156
+ {
157
+ "caseId": "content-frontmatter-invalid-518711a285edc402",
158
+ "coveredRuleIds": [
159
+ "content-frontmatter:#/$defs/contentEdition/properties/generation:required:generationId"
160
+ ],
161
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
162
+ "schemaPointer": "#/$defs/contentEdition/properties/generation",
163
+ "keyword": "required",
164
+ "instance": { "provider": "anthropic", "model": "fixture-1" },
165
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
166
+ },
97
167
  {
98
168
  "caseId": "content-frontmatter-invalid-548b6344fcd5c75f",
99
169
  "coveredRuleIds": ["content-frontmatter:#:required:createdAt"],
@@ -125,6 +195,40 @@
125
195
  "instance": { "path": "content/fixture-1.md", "alt": "fixture-1" },
126
196
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
127
197
  },
198
+ {
199
+ "caseId": "content-frontmatter-invalid-66209325a4d47300",
200
+ "coveredRuleIds": [
201
+ "content-frontmatter:#/$defs/contentEdition:required:sourceDigest"
202
+ ],
203
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
204
+ "schemaPointer": "#/$defs/contentEdition",
205
+ "keyword": "required",
206
+ "instance": {
207
+ "of": "fixture-1",
208
+ "kind": "QUICK_READ",
209
+ "generation": {
210
+ "provider": "anthropic",
211
+ "model": "fixture-1",
212
+ "generationId": "019c0000-0000-7000-8000-000000000001"
213
+ },
214
+ "approvedAt": "2026-09-13T12:00:00.000Z"
215
+ },
216
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
217
+ },
218
+ {
219
+ "caseId": "content-frontmatter-invalid-8ca7558c87ac3b0f",
220
+ "coveredRuleIds": [
221
+ "content-frontmatter:#/$defs/contentEdition/properties/generation:required:provider"
222
+ ],
223
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
224
+ "schemaPointer": "#/$defs/contentEdition/properties/generation",
225
+ "keyword": "required",
226
+ "instance": {
227
+ "model": "fixture-1",
228
+ "generationId": "019c0000-0000-7000-8000-000000000001"
229
+ },
230
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
231
+ },
128
232
  {
129
233
  "caseId": "content-frontmatter-invalid-901ede69713986c7",
130
234
  "coveredRuleIds": [
@@ -353,5 +457,65 @@
353
457
  "extensions": {}
354
458
  },
355
459
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
460
+ },
461
+ {
462
+ "caseId": "content-frontmatter-invalid-e736bf012d175edb",
463
+ "coveredRuleIds": ["content-frontmatter:#/allOf/1/if:required:kind"],
464
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
465
+ "schemaPointer": "#/allOf/1/if",
466
+ "keyword": "required",
467
+ "instance": {},
468
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
469
+ },
470
+ {
471
+ "caseId": "content-frontmatter-invalid-f04fdd1bd745e601",
472
+ "coveredRuleIds": [
473
+ "content-frontmatter:#/$defs/contentEdition:required:kind"
474
+ ],
475
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
476
+ "schemaPointer": "#/$defs/contentEdition",
477
+ "keyword": "required",
478
+ "instance": {
479
+ "of": "fixture-1",
480
+ "sourceDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
481
+ "generation": {
482
+ "provider": "anthropic",
483
+ "model": "fixture-1",
484
+ "generationId": "019c0000-0000-7000-8000-000000000001"
485
+ },
486
+ "approvedAt": "2026-09-13T12:00:00.000Z"
487
+ },
488
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
489
+ },
490
+ {
491
+ "caseId": "content-frontmatter-invalid-f8a487c2b1ab81cb",
492
+ "coveredRuleIds": [
493
+ "content-frontmatter:#/$defs/contentEdition:required:of"
494
+ ],
495
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
496
+ "schemaPointer": "#/$defs/contentEdition",
497
+ "keyword": "required",
498
+ "instance": {
499
+ "kind": "QUICK_READ",
500
+ "sourceDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
501
+ "generation": {
502
+ "provider": "anthropic",
503
+ "model": "fixture-1",
504
+ "generationId": "019c0000-0000-7000-8000-000000000001"
505
+ },
506
+ "approvedAt": "2026-09-13T12:00:00.000Z"
507
+ },
508
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
509
+ },
510
+ {
511
+ "caseId": "content-frontmatter-invalid-fe05af606d0d2794",
512
+ "coveredRuleIds": [
513
+ "content-frontmatter:#/allOf/1/else/not:required:edition"
514
+ ],
515
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
516
+ "schemaPointer": "#/allOf/1/else/not",
517
+ "keyword": "required",
518
+ "instance": {},
519
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
356
520
  }
357
521
  ]
@@ -8,6 +8,17 @@
8
8
  "instance": {},
9
9
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
10
10
  },
11
+ {
12
+ "caseId": "content-frontmatter-invalid-2282848ac2fde699",
13
+ "coveredRuleIds": [
14
+ "content-frontmatter:#/$defs/contentEdition/properties/generation:type"
15
+ ],
16
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
17
+ "schemaPointer": "#/$defs/contentEdition/properties/generation",
18
+ "keyword": "type",
19
+ "instance": [],
20
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
21
+ },
11
22
  {
12
23
  "caseId": "content-frontmatter-invalid-4b0b16fe3b97b836",
13
24
  "coveredRuleIds": ["content-frontmatter:#/properties/tags:type"],
@@ -46,6 +57,15 @@
46
57
  "instance": [],
47
58
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
48
59
  },
60
+ {
61
+ "caseId": "content-frontmatter-invalid-bb2238b3e4e53990",
62
+ "coveredRuleIds": ["content-frontmatter:#/$defs/contentEdition:type"],
63
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
64
+ "schemaPointer": "#/$defs/contentEdition",
65
+ "keyword": "type",
66
+ "instance": [],
67
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
68
+ },
49
69
  {
50
70
  "caseId": "content-frontmatter-invalid-c7be4190c35ee529",
51
71
  "coveredRuleIds": ["content-frontmatter:#/$defs/extensionMap:type"],