-
Notifications
You must be signed in to change notification settings - Fork 28
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
Support for additionalResponses
#548
Comments
Notice that there is also the concept of |
additionalExpectedResponses
additionalResponses
And it has to be composed with |
In the context of a scripting API these are errors - which we do take into account, but we may want to extend the details. |
Not all of them, since you can express alternative |
Doesn't matter, the API is still fine with a Promise... eventually you can resolve it with an object. |
Call 13/05:
We need somebody who can work on this issue and propose pointers to a solution. |
We have a normal path that is relying on the logical data schemas of the affordance and we have a richer path that adds additional schemas bound to the form (and thus potentially protocol specific). As it is the best we can provide is the data and the schema it matches, if one is matched. We should discuss on TD if we want to say anything regarding when more than a dataschema matches probably. For TD 2.0 could be useful to give provisions to map protocol-specific errors and/or other side-channel metadata to logical concepts so would be possible easier to have protocol-translating proxies (e.g http 404 -> |
Call 05/08:
|
I've updated the first post with the links to the two newly created issues. |
Current TD specification introduced the concept of
additionalResponses
to model APIs that might return different payloads from the same affordance. The field is used also to model both successful responses and error responses. For example, the Thing Description of a Thing Description Directory contains the following:AdditionalExpectedResponses
as success responses #559The text was updated successfully, but these errors were encountered: