-
Notifications
You must be signed in to change notification settings - Fork 24
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
Define which members are mandatory vs. optional #135
Comments
The Web Thing API specification provides a definition for the Property object which describes a property in the Thing Descriptiona and the Property resource which is part of the REST API. What exactly is it that you want to know? |
I just want a definition of the Property of the RFC documents, such as https://tools.ietf.org/html/rfc5988 . Because it will use key words "MUST", "MUST NOT", "REQUIRED"... More accurately inform what implementations need to be done. |
@dravenk I'm afraid the unofficial specification we maintain at https://iot.mozilla.org/wot does not yet have these kinds of formal definitions like an IETF RFC might have, although we should probably at least specify which members are mandatory (I've updated the title of this issue to reflect that). The W3C maintain a more formal specification for a Thing Description at https://www.w3.org/TR/wot-thing-description/ although this does not exactly match what Mozilla WebThings implements as the specification is still evolving. |
@benfrancis I have some predefined Thing property, whether I should be in accordance with the predefined description, for instance: OnOffProperty
Are the
|
@dravenk Sorry but I'm struggling to understand your questions, which don't seem related to the topic of this issue.
OnOffProperty is a semantic annotation in our schema repository which can be provided as a The optional description field in a Property object can be set to any string by the author of the Thing Description and is specific to an individual device. I'm not sure what you mean by Thing bundle. |
@benfrancis Thank you. I did more research and found a good point to deal with the question of whether to pre-define the Thing bundle.
|
I finished reading Web Thing API , but anyway, I've read WoT Capability Schemas, but did not find any RFC file definition of property resource.
I see this discussion Actions vs. Properties #4 and this answer.
This would make it impossible for me to define exactly and use a property resource.
The text was updated successfully, but these errors were encountered: