-
Notifications
You must be signed in to change notification settings - Fork 63
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
ThingModel extension via tm:extends
of actions and events
#2011
Comments
Welcome back @thjaeckle ! If that is not good for you, we can open the discussion to make the extension mechanism more tolerant. In that case, we will probably need a use case description from you. |
Thanks for the quick feedback @egekorkan (as always I would say :)). So to summarize: It is not recommended (but not forbidden due to This I would understand from:
However - it still can (because only
As the example in Figure 6 provides exactly such an example for a |
Good points and my first comment can be ignored. In that case, your question In any case, the spec should define more clearly what is a less restrictive extension and what is a more restrictive one. |
Yes, I would also expect that .. Yes, the spec leaves some "room for interpretation" here. But the good thing is, that the concept should still work without having to copy/repeat information from the extended model. |
So I think that the "simple" part of this question is answered (let us know if not @thjaeckle). Looking at the bigger picture, the point " the spec should define more clearly what is a less restrictive extension and what is a more restrictive one." is important, which relates to the following points:
|
Hi WoT folks. 👋
I ran into a question regarding extension of ThingModels which I could not find answered in the 1.1 TD specification.
How exactly are
actions
andevents
"extended"?The specification states:
and:
But for me it is not quite clear, if e.g. "input" not specified is "copied" to the extending model.
Or if the "output" should be "merged" with the extended "output".
Or, if "input" and "output" explicitly must be copied to form a "valid TM action".
Example:
Example TM extending from the above:
In the example above, would the 2nd TM "Black magic performing Thing Model" also "inheriting" the
"input"
and would its"output"
contain properties from the extended model merged with the own defined properties?The text was updated successfully, but these errors were encountered: