json-ld / yaml-ld

CG specification for YAML-LD and UCR
https://json-ld.github.io/yaml-ld/spec
Other
19 stars 8 forks source link

Test: mapping key types other than strings must fail #115

Closed anatoly-scherbakov closed 8 months ago

anatoly-scherbakov commented 10 months ago

We have specified that keys MUST be strings. There is already a test that verifies a failure when keys are integers. What about booleans, mappings, arrays, etc?

gkellogg commented 10 months ago

It would be reasonable to have examples using all kinds of things as keys: boolean, array, object, in addition to integer.