Wot-thing-description: Need a $id for the JSON Schema

Created on 9 May 2019  路  8Comments  路  Source: w3c/wot-thing-description

I think it is needed a $id for the TD JSON Schema. I'm wondering where at W3C the schema is going to be hosted and that could be equal to the $id maybe it could be

"$id": "https://www.w3.org/2019/wot/td/v1" and serve the schema under content negotiation (application/schema+json), not sure if that could be a good idea ... or just

"$id": "https://www.w3.org/2019/wot/td/v1/schema.json"

Defer to next TD spec version JSON Schema

All 8 comments

A good point, to include to the discussion on #432.

this is not part of the subset that we want to support at the moment. Can be consider in the future

Our alignment with JSON-LD favors the Linked Data inclusion mechanism. The subset still ensures compatibility with JSON Schema.

A future version might look further into a combined solution (we had discussions and unsatisfactory proposals for this already and decided to defer).

Hello, maybe a silly question, is there an official URL for the JSON schema that I can reference in my thing descriptions? Simply to see if my thing description is schema-conform.

My current solution is to copy the text from the Thing Description specification into a local file and reference it. Doesn't make much sense to me 馃槂 .

You can use the following URI: https://w3c.github.io/wot-thing-description/validation/td-json-schema-validation.json. It's not canonical, though.

Thank you very much!

@egekorkan what do you think?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ToruKawaguchi picture ToruKawaguchi  路  6Comments

mlagally picture mlagally  路  5Comments

kolotu picture kolotu  路  7Comments

msporny picture msporny  路  8Comments

egekorkan picture egekorkan  路  6Comments