@rathnasgala2/schemas 3.9.0 → 3.11.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 (47) hide show
  1. package/THIRD_PARTY_LICENSES.json +1 -1
  2. package/diagnostics/diagnostic-map.json +255 -9
  3. package/docs/catalogs/app-components.json +71 -1
  4. package/docs/catalogs/app-routes.json +27 -4
  5. package/docs/catalogs/schema-inventory.json +5 -5
  6. package/examples/valid/appearance/rules.json +105 -1
  7. package/examples/valid/build-input/rules.json +105 -1
  8. package/examples/valid/theme-contract/rules.json +276 -2
  9. package/fixtures/boundary/appearance/rules.json +105 -12
  10. package/fixtures/boundary/build-input/rules.json +105 -12
  11. package/fixtures/boundary/theme-contract/rules.json +386 -2
  12. package/fixtures/invalid/appearance/REQUEST_FIELD_UNKNOWN/cases.json +33 -0
  13. package/fixtures/invalid/appearance/SCHEMA_OBJECT_TOO_LARGE/cases.json +0 -13
  14. package/fixtures/invalid/appearance/SCHEMA_PATTERN_INVALID/cases.json +68 -0
  15. package/fixtures/invalid/appearance/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +66 -0
  16. package/fixtures/invalid/appearance/SCHEMA_TYPE_INVALID/cases.json +99 -0
  17. package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +33 -0
  18. package/fixtures/invalid/build-input/SCHEMA_PATTERN_INVALID/cases.json +66 -0
  19. package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +66 -0
  20. package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +99 -0
  21. package/fixtures/invalid/theme-contract/REQUEST_FIELD_UNKNOWN/cases.json +33 -0
  22. package/fixtures/invalid/theme-contract/SCHEMA_ARRAY_TOO_LONG/cases.json +165 -0
  23. package/fixtures/invalid/theme-contract/SCHEMA_CONSTANT_INVALID/cases.json +11 -11
  24. package/fixtures/invalid/theme-contract/SCHEMA_ENUM_INVALID/cases.json +88 -0
  25. package/fixtures/invalid/theme-contract/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +93 -0
  26. package/fixtures/invalid/theme-contract/SCHEMA_TYPE_INVALID/cases.json +51 -0
  27. package/fixtures/manifest.json +1955 -35
  28. package/fixtures/unknown-field/appearance/rules.json +54 -1
  29. package/fixtures/unknown-field/build-input/rules.json +54 -1
  30. package/fixtures/unknown-field/theme-contract/rules.json +70 -1
  31. package/generated/browser/validator-core.mjs +3 -3
  32. package/generated/typescript/contracts/appearance.d.ts +14 -1
  33. package/generated/typescript/contracts/build-input.d.ts +14 -1
  34. package/generated/typescript/contracts/theme-contract.d.ts +51 -0
  35. package/openapi/http-catalog.json +38 -2
  36. package/openapi/openapi.yaml +598 -3
  37. package/package.json +10 -1
  38. package/parity/palette/golden-vectors.json +883 -0
  39. package/parity/palette/stress-corpus.json +521 -0
  40. package/parity/palette/theme-default.fixture.json +698 -0
  41. package/sbom.cdx.json +23 -23
  42. package/schemas/appearance.schema.json +30 -3
  43. package/schemas/build-input.schema.json +30 -3
  44. package/schemas/theme-contract.schema.json +185 -1
  45. package/src/palette.js +919 -0
  46. package/types/palette.d.ts +305 -0
  47. package/fixtures/invalid/build-input/SCHEMA_OBJECT_TOO_LARGE/cases.json +0 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rathnasgala2/schemas",
3
- "version": "3.9.0",
3
+ "version": "3.11.0",
4
4
  "description": "Executable JSON Schema and OpenAPI contracts for Galascribe",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -29,6 +29,10 @@
29
29
  "types": "./types/frozen-envelope.d.ts",
30
30
  "import": "./src/frozen-envelope.js"
31
31
  },
32
+ "./palette": {
33
+ "types": "./types/palette.d.ts",
34
+ "import": "./src/palette.js"
35
+ },
32
36
  "./schemas/adapter-capability.schema.json": "./schemas/adapter-capability.schema.json",
33
37
  "./schemas/appearance.schema.json": "./schemas/appearance.schema.json",
34
38
  "./schemas/artifact-manifest.schema.json": "./schemas/artifact-manifest.schema.json",
@@ -55,6 +59,9 @@
55
59
  "import": "./generated/typescript/index.js"
56
60
  },
57
61
  "./parity/digest-record-vectors.json": "./parity/digest-record-vectors.json",
62
+ "./palette/golden-vectors.json": "./parity/palette/golden-vectors.json",
63
+ "./palette/stress-corpus.json": "./parity/palette/stress-corpus.json",
64
+ "./palette/theme-default.fixture.json": "./parity/palette/theme-default.fixture.json",
58
65
  "./catalog-sources/internal-event-actions.json": "./catalog-sources/internal-event-actions.json",
59
66
  "./docs/catalogs/app-components.json": "./docs/catalogs/app-components.json",
60
67
  "./docs/catalogs/app-routes.json": "./docs/catalogs/app-routes.json",
@@ -85,6 +92,7 @@
85
92
  "docs/catalogs/app-routes.json",
86
93
  "docs/catalogs/app-components.json",
87
94
  "parity/digest-record-vectors.json",
95
+ "parity/palette/",
88
96
  "LICENSE",
89
97
  "NOTICE",
90
98
  "README.md",
@@ -142,6 +150,7 @@
142
150
  "app-catalogs:generate": "node scripts/generate-app-catalogs.mjs",
143
151
  "app-catalogs:check": "node scripts/generate-app-catalogs.mjs --check",
144
152
  "browser-safety:check": "node scripts/check-browser-safety.mjs",
153
+ "palette-vectors:generate": "node scripts/generate-palette-vectors.mjs",
145
154
  "format": "prettier --write .",
146
155
  "format:check": "prettier --check .",
147
156
  "lint": "eslint .",