m-ld-js
m-ld-js copied to clipboard
Term definitions in context should be able to declare a list
Consider the following JSON-LD document:
{
"@context": {
"appliances": {
"@id": "ex:appliances",
"@container": "@list"
}
},
"appliances": [
"toaster",
"microwave"
]
}
According to the JSON-LD playground, this compacts (with an empty context) to:
{
"ex:appliances": {
"@list": [
"toaster",
"microwave"
]
}
}
However, m-ld doesn't notice that ex:appliances should be a @list:
[
{
"@id": ".well-known/genid/clfgzkmo700033b6mrbk33fxz",
"ex:appliances": [
"microwave",
"toaster"
]
}
]