Coming from a discussion with @relu91.
The text at https://w3c.github.io/wot-discovery/#directory-api-spec says:
To tell the server which format to send, the additional query parameter ?format=array|collection can be added to the request. ?format=array is the default parameter, does not have to be provided explicitly, and yields to a server response of the pure array of TDs. ?format=collection should yield to a server response with the format as described in Example 9.
The listing operation is specified as things property in 7.3.2.4 API Specification (Thing Model).
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.
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.