- From: Drew Powers via GitHub <noreply@w3.org>
- Date: Fri, 30 Jan 2026 16:04:14 +0000
- To: public-design-tokens-log@w3.org
drwpow has just merged dgtlntv's pull request 389 for https://github.com/design-tokens/community-group:
== Allow whole array aliasing in JSON schema ==
## Changes
Another small fix to the JSON schema. For the color and strokeStyle token values the JSON schema previously did not allow for the whole array in those schemas to be referenced with a JSON pointer. I.e.
```json
{
"colors": {
"$type": "color",
"base-blue": {
"$value": {
"colorSpace": "srgb",
"components": [0.2, 0.4, 0.9]
}
},
"derived-same-components": {
"$description": "References the entire components array from base-blue",
"$value": {
"colorSpace": "srgb",
"components": { "$ref": "#/colors/base-blue/$value/components" }
}
}
}
}
```
was not allowed before but from my understanding it should be allowed.
In the color value schema since the components can now be an array or an object I needed to refine the `if` statements to check for the color space and wether the components are an array (so it does not try to apply color space rules on components that are a JSON pointer reference).
## How to Review
Verify if the schema now properly allows referencing whole arrays within color and strokeStyle values. Also verify that that this change did not break any valid uses of color or strokeStyle values.
See https://github.com/design-tokens/community-group/pull/389
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 30 January 2026 16:04:15 UTC