Skip to content
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

Consider separately specifying Thing and Consumer roles for each operation #395

Open
benfrancis opened this issue Apr 27, 2023 · 1 comment

Comments

@benfrancis
Copy link
Member

Something I have observed whilst writing implementation reports is that in the WoT Profiles specification we tend to write assertions from either the perspective of a Thing or a Consumer, but not always both.

There are a lot of assertions in WoT Profiles which describe a contract between a Thing and a Consumer but the assertions only capture one half of that contract. For example, we may specify that a particular response should be sent by a Thing, but not specify how a Consumer should interpret that response.

The result of this is that when testing an implementation of a Thing or a Consumer the assertions may only mention one role, yet implementation is needed on both sides.

Something to think about for the second version of the Profile specification might be to more explicitly specify the separate Thing and Consumer roles for each operation, in order to capture both sides of a contract.

@egekorkan
Copy link
Contributor

This is applicable to the TD and all protocol bindings as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants