- From: Romain Menke via GitHub <sysbot+gh@w3.org>
- Date: Wed, 07 Dec 2022 07:53:58 +0000
- To: public-design-tokens-log@w3.org
romainmenke has just created a new issue for https://github.com/design-tokens/community-group:
== Token name can be an empty string ==
The current specification does not require token names to be strings with a non-zero length.
https://tr.designtokens.org/format/#name-and-value
```json
{
"": { "$value": "3rem" },
"other": { "$value": "{}" }
}
```
This parses just fine :
```js
const json = `{
"": { "$value": "3rem" },
"other": { "$value": "{}" }
}`;
console.log(JSON.parse(json));
// { '': { '$value': '3rem' }, other: { '$value': '{}' } }
```
Is this intended?
Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/195 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 7 December 2022 07:54:00 UTC