problem parsing TD securityDefinitions

Hi, 
I am wondering if somebody can help me with the following. I have this TD (extracted from the specifications examples).

{
  "@context": "https://www.w3.org/2019/wot/td/v1",
  "id": "urn:dev:ops:32473-WoTLamp-1234",
  "title": "MyLampThing",
  "securityDefinitions": {
    "basic_sc": {
      "scheme": "basic",
      "in": "header"
    }
  },
  "security": [
    "basic_sc"
  ]
}

I try to parse it with http://rdf.greggkellogg.net/distiller and json-ld playground https://json-ld.org/playground/

Both parsers miss the  "scheme"  and "in" parameters. They only see them if I add a "@type" inside "basic_sc", i.e.,

"basic_sc": {
      "@type":"security",
      "scheme": "basic",
      "in": "header"
    }

But this is not reasonable.

I have opened this issue but still I haven’t managed to find the solution https://github.com/w3c/wot-thing-description/issues/915

Best,
Nikos

Received on Friday, 19 June 2020 13:29:04 UTC