-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Architecting TM support #223
Comments
Hi, I'd like to see this issue solved, as well. Regarding detection of TM vs. TD, I think this should be handled based on the @type of the Thing, as explained in Thing Model:
This way we don't have to implement different solution for CLI and Frontend. Based on this detection, for instance the appropriate schema should be picked for JSON Schema validation, further checks can vary on that basis. |
So we have decided to not do this based on
|
A first version is available for CLI since a couple of weeks btw: https://github.com/thingweb/thingweb-playground/blob/master/packages/cli/index.js#L38 |
I think that we can close this now given that we have TM in the web as well. The additional schemas can be another issue since it is not just about TMs in general |
I want to revisit this in the context of a potential bug in the Thing Model design in TD v1.1:
On top, I believe we have a bigger issue: To my understanding a node cannot be be of (@)type Thing and tm:ThingModel at the same time, as they have conflicting rules about default/mandatory/optional fields apply (i.e., ontology conflicts), Previously, the TD context file always implied Now, this does not work anymore, as an Hence, the TD spec 1.1 first needs a fix of this bug. And then we can also rely on the |
General:
Assertions Package:
CLI consideration
Frontend (low priority)
The text was updated successfully, but these errors were encountered: