You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the What to do with WoT Profiles 1.0 thread on the mailing list @egekorkan gave an example where a profile may specify a protocol binding which conflicts with the defaults defined in a binding template, and may therefore confuse Consumers which don't implement that profile.
We could consider adding an assertion to the WoT Profiles specification which requires that profiles must never prescribe something which conflicts with the defaults in a binding template for a given protocol. If we think that in Profiles 2.0 the profile protocol bindings and binding template defaults might actually be merged and become the same thing, it might be a good idea to specify this constraint now in Profiles 1.0.
The one problem I can see with that is that currently profiles are normative and binding templates are non-normative, and having a normative assertion rely on the content of non-normative text may be a problem.
The text was updated successfully, but these errors were encountered:
example where a profile may specify a protocol binding which conflicts with the defaults defined in a binding template, and may therefore confuse Consumers which don't implement that profile.
I said that but the solution is not putting a constraint like this. In my example, it is possible to add a conflict to the defaults in a profile as long as the option can be described in a TD. node-wot would not be effected if an action is invoked with a PUT or POST.
Hmm, maybe I didn't explain this well. What I mean is that a profile shouldn't redefine a default in its protocol binding specification, and then expect Consumers to assume that different default even though it isn't explicitly expressed in the TD.
The HTTP Basic Profile and HTTP SSE Profile currently never require the use binding vocabularies in Thing Descriptions, which I really like because it means a simple Consumer can implement a profile without having to implement full support for a binding vocabulary (which is much more complex).
Maybe this should just be guidance/advice for authors of future profiles rather than a normative assertion.
What I mean is that a profile shouldn't redefine a default in its protocol binding specification, and then expect Consumers to assume that different default even though it isn't explicitly expressed in the TD.
In the What to do with WoT Profiles 1.0 thread on the mailing list @egekorkan gave an example where a profile may specify a protocol binding which conflicts with the defaults defined in a binding template, and may therefore confuse Consumers which don't implement that profile.
We could consider adding an assertion to the WoT Profiles specification which requires that profiles must never prescribe something which conflicts with the defaults in a binding template for a given protocol. If we think that in Profiles 2.0 the profile protocol bindings and binding template defaults might actually be merged and become the same thing, it might be a good idea to specify this constraint now in Profiles 1.0.
The one problem I can see with that is that currently profiles are normative and binding templates are non-normative, and having a normative assertion rely on the content of non-normative text may be a problem.
The text was updated successfully, but these errors were encountered: