@rathnasgala2/schemas 3.2.0 → 3.4.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 +701 -1
  5. package/docs/catalogs/app-routes.json +365 -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 +549 -9
  37. package/openapi/openapi.yaml +18340 -4755
  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
@@ -151,6 +151,20 @@
151
151
  },
152
152
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
153
153
  },
154
+ {
155
+ "caseId": "appearance-unknown-6ea96ad6b6acb54c",
156
+ "coveredRuleIds": [
157
+ "appearance:#/$defs/attribution/properties/showMadeWith:type",
158
+ "appearance:#/$defs/attribution:additionalProperties",
159
+ "appearance:#/$defs/attribution:required:showMadeWith",
160
+ "appearance:#/$defs/attribution:type"
161
+ ],
162
+ "schemaId": "urn:gala:schema:appearance:2.0.0",
163
+ "schemaPointer": "#/$defs/attribution",
164
+ "keyword": "additionalProperties",
165
+ "instance": { "showMadeWith": false, "unexpected": true },
166
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
167
+ },
154
168
  {
155
169
  "caseId": "appearance-unknown-e01b29a6b0d28dc0",
156
170
  "coveredRuleIds": [
@@ -1027,6 +1027,49 @@
1027
1027
  "instance": { "ai": "allow", "unexpected": true },
1028
1028
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
1029
1029
  },
1030
+ {
1031
+ "caseId": "build-input-unknown-6ea96ad6b6acb54c",
1032
+ "coveredRuleIds": [
1033
+ "build-input:#/$defs/attribution/properties/showMadeWith:type",
1034
+ "build-input:#/$defs/attribution:additionalProperties",
1035
+ "build-input:#/$defs/attribution:required:showMadeWith",
1036
+ "build-input:#/$defs/attribution:type"
1037
+ ],
1038
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1039
+ "schemaPointer": "#/$defs/attribution",
1040
+ "keyword": "additionalProperties",
1041
+ "instance": { "showMadeWith": false, "unexpected": true },
1042
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
1043
+ },
1044
+ {
1045
+ "caseId": "build-input-unknown-7d80f5971b255b6b",
1046
+ "coveredRuleIds": [
1047
+ "build-input:#/$defs/contentEdition/properties/kind:enum",
1048
+ "build-input:#/$defs/contentEdition:additionalProperties",
1049
+ "build-input:#/$defs/contentEdition:required:approvedAt",
1050
+ "build-input:#/$defs/contentEdition:required:generation",
1051
+ "build-input:#/$defs/contentEdition:required:kind",
1052
+ "build-input:#/$defs/contentEdition:required:of",
1053
+ "build-input:#/$defs/contentEdition:required:sourceDigest",
1054
+ "build-input:#/$defs/contentEdition:type"
1055
+ ],
1056
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1057
+ "schemaPointer": "#/$defs/contentEdition",
1058
+ "keyword": "additionalProperties",
1059
+ "instance": {
1060
+ "of": "fixture-1",
1061
+ "kind": "QUICK_READ",
1062
+ "sourceDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
1063
+ "generation": {
1064
+ "provider": "anthropic",
1065
+ "model": "fixture-1",
1066
+ "generationId": "019c0000-0000-7000-8000-000000000001"
1067
+ },
1068
+ "approvedAt": "2026-09-13T12:00:00.000Z",
1069
+ "unexpected": true
1070
+ },
1071
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
1072
+ },
1030
1073
  {
1031
1074
  "caseId": "build-input-unknown-9c1128252c60c49e",
1032
1075
  "coveredRuleIds": [
@@ -1141,6 +1184,27 @@
1141
1184
  },
1142
1185
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
1143
1186
  },
1187
+ {
1188
+ "caseId": "build-input-unknown-da9503c538e8a030",
1189
+ "coveredRuleIds": [
1190
+ "build-input:#/$defs/contentEdition/properties/generation/properties/provider:enum",
1191
+ "build-input:#/$defs/contentEdition/properties/generation:additionalProperties",
1192
+ "build-input:#/$defs/contentEdition/properties/generation:required:generationId",
1193
+ "build-input:#/$defs/contentEdition/properties/generation:required:model",
1194
+ "build-input:#/$defs/contentEdition/properties/generation:required:provider",
1195
+ "build-input:#/$defs/contentEdition/properties/generation:type"
1196
+ ],
1197
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1198
+ "schemaPointer": "#/$defs/contentEdition/properties/generation",
1199
+ "keyword": "additionalProperties",
1200
+ "instance": {
1201
+ "provider": "anthropic",
1202
+ "model": "fixture-1",
1203
+ "generationId": "019c0000-0000-7000-8000-000000000001",
1204
+ "unexpected": true
1205
+ },
1206
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
1207
+ },
1144
1208
  {
1145
1209
  "caseId": "build-input-unknown-ddf7847f1333a8c9",
1146
1210
  "coveredRuleIds": [
@@ -1321,6 +1385,11 @@
1321
1385
  {
1322
1386
  "caseId": "build-input-unknown-fc3cc67b44d0a9c0",
1323
1387
  "coveredRuleIds": [
1388
+ "build-input:#/$defs/contentFrontmatterNormalized/allOf/0/else/not:required:edition",
1389
+ "build-input:#/$defs/contentFrontmatterNormalized/allOf/0/else:not",
1390
+ "build-input:#/$defs/contentFrontmatterNormalized/allOf/0/if/properties/kind:const",
1391
+ "build-input:#/$defs/contentFrontmatterNormalized/allOf/0/if:required:kind",
1392
+ "build-input:#/$defs/contentFrontmatterNormalized/allOf/0/then:required:edition",
1324
1393
  "build-input:#/$defs/contentFrontmatterNormalized/properties/authorIds:maxItems",
1325
1394
  "build-input:#/$defs/contentFrontmatterNormalized/properties/authorIds:minItems",
1326
1395
  "build-input:#/$defs/contentFrontmatterNormalized/properties/authorIds:type",
@@ -78,6 +78,11 @@
78
78
  "content-frontmatter:#/allOf/0/if/properties/status:enum",
79
79
  "content-frontmatter:#/allOf/0/if:required:status",
80
80
  "content-frontmatter:#/allOf/0/then:required:publishedAt",
81
+ "content-frontmatter:#/allOf/1/else/not:required:edition",
82
+ "content-frontmatter:#/allOf/1/else:not",
83
+ "content-frontmatter:#/allOf/1/if/properties/kind:const",
84
+ "content-frontmatter:#/allOf/1/if:required:kind",
85
+ "content-frontmatter:#/allOf/1/then:required:edition",
81
86
  "content-frontmatter:#/properties/authors:maxItems",
82
87
  "content-frontmatter:#/properties/authors:minItems",
83
88
  "content-frontmatter:#/properties/authors:type",
@@ -137,6 +142,35 @@
137
142
  },
138
143
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
139
144
  },
145
+ {
146
+ "caseId": "content-frontmatter-unknown-7d80f5971b255b6b",
147
+ "coveredRuleIds": [
148
+ "content-frontmatter:#/$defs/contentEdition/properties/kind:enum",
149
+ "content-frontmatter:#/$defs/contentEdition:additionalProperties",
150
+ "content-frontmatter:#/$defs/contentEdition:required:approvedAt",
151
+ "content-frontmatter:#/$defs/contentEdition:required:generation",
152
+ "content-frontmatter:#/$defs/contentEdition:required:kind",
153
+ "content-frontmatter:#/$defs/contentEdition:required:of",
154
+ "content-frontmatter:#/$defs/contentEdition:required:sourceDigest",
155
+ "content-frontmatter:#/$defs/contentEdition:type"
156
+ ],
157
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
158
+ "schemaPointer": "#/$defs/contentEdition",
159
+ "keyword": "additionalProperties",
160
+ "instance": {
161
+ "of": "fixture-1",
162
+ "kind": "QUICK_READ",
163
+ "sourceDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
164
+ "generation": {
165
+ "provider": "anthropic",
166
+ "model": "fixture-1",
167
+ "generationId": "019c0000-0000-7000-8000-000000000001"
168
+ },
169
+ "approvedAt": "2026-09-13T12:00:00.000Z",
170
+ "unexpected": true
171
+ },
172
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
173
+ },
140
174
  {
141
175
  "caseId": "content-frontmatter-unknown-be70835e9e5e5534",
142
176
  "coveredRuleIds": [
@@ -164,5 +198,26 @@
164
198
  "unexpected": true
165
199
  },
166
200
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
201
+ },
202
+ {
203
+ "caseId": "content-frontmatter-unknown-da9503c538e8a030",
204
+ "coveredRuleIds": [
205
+ "content-frontmatter:#/$defs/contentEdition/properties/generation/properties/provider:enum",
206
+ "content-frontmatter:#/$defs/contentEdition/properties/generation:additionalProperties",
207
+ "content-frontmatter:#/$defs/contentEdition/properties/generation:required:generationId",
208
+ "content-frontmatter:#/$defs/contentEdition/properties/generation:required:model",
209
+ "content-frontmatter:#/$defs/contentEdition/properties/generation:required:provider",
210
+ "content-frontmatter:#/$defs/contentEdition/properties/generation:type"
211
+ ],
212
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
213
+ "schemaPointer": "#/$defs/contentEdition/properties/generation",
214
+ "keyword": "additionalProperties",
215
+ "instance": {
216
+ "provider": "anthropic",
217
+ "model": "fixture-1",
218
+ "generationId": "019c0000-0000-7000-8000-000000000001",
219
+ "unexpected": true
220
+ },
221
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
167
222
  }
168
223
  ]