-
Notifications
You must be signed in to change notification settings - Fork 36
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
W3C Compliance #81
base: master
Are you sure you want to change the base?
W3C Compliance #81
Conversation
@fatadel Thanks very much for sharing this early PR! @tim-hellhake is welcome to review it and decide what branch to eventually land on. As expected, it seems there are several open questions shared with the gateway implementation which need resolving before we can be sure of what to do with some features. Let's try to resolve those issues on the gateway first, in the issues tagged with w3c-compliance. |
Following up on this after a long time, the master branch of WebThings Gateway is now more or less compliant with WoT Thing Description 1.1 and WoT Profile (HTTP Basic Profile and HTTP SSE Profile). That can provide a guide as to how to make all the WebThings Framework libraries like this one compliant.
I would ideally like to implement both the HTTP Basic Profile and HTTP SSE Profile in all the WebThings Framework libraries, so that all WebThings web thing implementations are consistent with the gateway.
This sounds wrong from this description, the action input should be mapped directly onto the body of the
WebThings Gateway doesn't currently expose any action outputs, but that could be implemented. Note that the HTTP Basic Profile has different response payloads for synchronous vs. asynchronous actions https://w3c.github.io/wot-profile/#sync-action-response
You're correct, see
See
See |
This is an indermediate PR (thus it's a draft yet) to share my work with @sebastiankb, @benfrancis and @tim-hellhake.
What is already done:
links
=>forms
;mediaType
=>type
;value
field (the same as in node-wot). The response of Action is currently not touched because it's not quite clear what to do with it.rel
field is removed from all interaction affordances andop
is added instead with respective operations.Some open questions:
FYI, I've managed to consume and interact with (read/write properties and invoke action) the single-thing of webthing from a consumer in node-wot). The other behaviour (e.g. events) is not yet tested.