-
Notifications
You must be signed in to change notification settings - Fork 17
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
Issues with format listing option in TDD API #539
Comments
The issue with not being able to mention optional features in a TM is something that I think needs to be fixed in the TM spec, if possible. If/when it is, we can resolve the second point by updating the TDD's TM appropriately. Otherwise we will probably have to go in the other direction and not constrain/mention optional features at all. I don't think that's a great solution, it means the TM description of the API would be incomplete (although particular TDDs could add stuff to their own TDs). Maybe optional mixin TMs? Ugh. As to whether or not this should be an assertion, in some cases we took out assertions (or turned them into explanatory text) if they were duplicates e.g. of a table assertion. I'm not saying that's the case here but we will have to check. |
There is an assertion for this, a few paragraphs above:
So, the collection format is optional. As for the error message, the server should respond with a 400 or 501. See the following assertion:
And the examples that follow:
https://www.w3.org/TR/wot-discovery/#exploration-directory-api |
Coming from a discussion with @relu91.
The text at https://w3c.github.io/wot-discovery/#directory-api-spec says:
First of all, this is not marked as an assertion. Implementations can miss this.
Secondly, it is not clear how to mention you don't support collection or array within format. According to the TM, all TDDs need to support both but if the Discoverer doesn't provide format, you can use a default term. This is an overall limitation on using TM to specify a flexible specification. If the TD of TDD does not provide one value, it is a wrong implementation since a TD cannot remove parts of a TM.
The text was updated successfully, but these errors were encountered: