-
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
Allow Form's "rel" to be a string or an array #236
Comments
If it helps, the next draft of JSON Hyper-Schema will also allow for either a string or array-of-strings value for |
The overall TD format allows "string or array-of-strings", as it is based on the JSON-LD format. So, yes, string or array-of-strings is the intended feature, and yes, we need to fix the TD spec. |
@AndreMaz Thanks for the hint. @egekorkan This must also be fixed in the TD playground. Thanks |
The new validation schema and the playground now support both string and array of strings |
@vcharpenay how can this reflected in ttl? |
op can be also an array |
please review |
In the discussion on Dec 21th we agreed that there should be a recommendation that the values of these fields "should be" consistent with the values of readonly, writeonly, ... |
What about defining one |
It is implemented in td-json-schema-validation.json as one or more of values permitted depending on which interaction affordance (or a Thing) the form belongs to. For example, the form in Property interaction affordance is defined as follows.
|
op member in form has context-dependent enumerated values (issue #236)
Current (01 October 2018) WoT spec defines Form's "rel" as a string that can take one of possible values: "readproperty", "writeproperty" , "observeproperty", "invokeaction", "subscribeevent" or "unsubscribeevent".
TD JSON Schema also specifies "rel" as string
One the other hand, the latest (12 September 2018) Protocol Binding Templates spec defines "rel" as an array.
Can you please sync the docs?
Suggestion, let "rel" be both (array or string) as does the OCF in their spec
The text was updated successfully, but these errors were encountered: