-
Notifications
You must be signed in to change notification settings - Fork 3
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
Move action to payload #4
Move action to payload #4
Comments
Yes and no, consider {
"payload":{
"action":"string",
"data": []
}
} I do not see any justification for that structural complication at the moment just for one field. |
OK, keep it open please. I will play with the format a little bit more to understand, how it should work. |
OK, let's leave it external, but we need to specify at least basic actions that should be recognized and supported. I propose the following:
|
There are two more reasons to keep it up level:
For instance, pair of It seems, this conflicts with an array |
Actually, I see only one case for array payload - when multiple device properties are changed in a short time. In this case, the array still could exist, but since it is system-specific, it will be inside the payload like: {
user: "someUser",
payload: {
device: "deviceName",
properties: [
{
name: ...,
value:
},
...
]
}
} |
I have updated RFC-1 accordingly, see 1e613cb |
OK |
I had to reopen the issue because after playing for some time with Tango to DF converter, I found out that there is no reasonable way to use tango-base actions outside of tango. I've found out that it is quite easy to move action to payload in magix-tango-connector. So I suggest that this change should be made in RFC. |
The
action
seems to be payload-specific so it probably should be moved to the payload.The text was updated successfully, but these errors were encountered: