eclipse / editdor

Eclipse ediTDor - A tool for simply designing W3C Thing Descriptions
https://eclipse.github.io/editdor/
38 stars 19 forks source link

Error reported on newly created TM #87

Closed Silvanoc closed 1 year ago

Silvanoc commented 1 year ago

Asking for a New TM the resulting skeleton is being reported to be erroneous, though it looks good to me. The error message is also really weird "[...] should NOT be valid [...]" 🤨

Issue observed on currently deployed version 0.5.0.

How to reproduce it? Simply click on "New" and select "ThingModel" as type in the dialog without entering any other data.

See screenshot:

image

egekorkan commented 1 year ago

I think that it's thinking that it's a TD since the td schema prohibits tm:ThingModel in @type

spf00 commented 1 year ago

The problem is actually that currently all inputs are treated as TDs as the only validation function that is called is "tdValidator(...)". We have to differentiate between TD and TM and call the according "tdValidator" or "tmValidator" functions.

Silvanoc commented 1 year ago

I've just deployed version 0.6.0 and can confirm that it works now.