Re: [community-group] Group format (#105)

Style Dictionary-format token files also just consider anything with `value` a token and everything else a group, and that convention has worked fine for me so far in everything I've done with tokens. I don't see a reason why checking for `node.$type == "group"` is any easier than `"value" in node` when writing a parser. So since the `"$type": "group"` option is more verbose, my vote goes to leaving it out.

(Plus, requiring `"$type": "group"` seems like it would completely block off the possibility of having tokens and groups with the same name as in #97, though having a special token name that's ignored when exporting would still work.)

-- 
GitHub Notification of comment by TravisSpomer
Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/105#issuecomment-1027343379 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 1 February 2022 22:19:06 UTC