-
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
UriVariables can't be used for RootForms #1357
Comments
Nice catch, I've never noticed this. This also makes me curious why |
I think the The securityDefinitions are referenced only from |
This is a good point, I think they were originally assigned the InteractionAffordance class because they were thought to be additional input parameters in the WoT Interaction Model. I remember people reporting use cases for having the ability to use UriVariables for reading properties (which in the abstract interaction model does not have any input). However, for their protocol-related nature, they should be really inside a Form and maybe as @thjaeckle in a root object for easy reuse. I would be happy also to see mechanisms to map Action inputs to specific UriVariables so that we have a clear separation between logical inputs of an Affordance and protocol level payloads. |
from today's TD call:
|
from today's TD call:
|
Hi.
I just found out that uriVariables can currently only be defined in InteractionAffordances.
That rules out using them for "RootForms" - which also is defined in the JsonSchema:
property_element
:wot-thing-description/validation/td-json-schema-validation.json
Lines 536 to 541 in 9db5e96
action_element
:wot-thing-description/validation/td-json-schema-validation.json
Lines 652 to 657 in 9db5e96
event_element
:wot-thing-description/validation/td-json-schema-validation.json
Lines 701 to 706 in 9db5e96
I wonder if this is an explicit decision or if this just was not yet thought about.
Using
uriVariables
in root forms might become really useful, e.g. in order to define whichfields
to select for thereadmultipleproperties
OP, e.g.:Which could be usable as:
The text was updated successfully, but these errors were encountered: