You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first bullet point at 6.2.2.1.1 Creation says:
A TD MUST be submitted to the directory using ...
I think it should be changed to
A TD which is identified with an id attribute MUST be submitted to the directory using ...
I think it is a small incoherence since a TD does not necessarily have an id and this gives me the idea that a TD can lack an id field and be submitted to /td/id where the id inside the TD document is generated by the TDD.
Additionally, the text (also the TM of the TDD) does not say that the id inside the TD and the id in the /td/id must be the same. This should be made more obvious in my opinion. Also, what should the error be in this case? The HTTP semantics would say 400 but what the 400 means in this operation only includes Invalid serialization or TD. which does not include mismatch of ids.
The text was updated successfully, but these errors were encountered:
I think the assertions are not so bad when placed together in context:
A TD which is identified with an id attribute MUST be handled differently with one that has no identifier (Anonymous TD).
The create operations are elaborated below:
A TD MUST be submitted to the directory using an HTTP PUT request at /things/{id} endpoint, where id is the unique TD identifier.
...
An Anonymous TD MUST be submitted to the directory using an HTTP POST request at /things endpoint.
Note that we had to keep them a bit ambiguous intentionally because we had requirements that a TD needs to be submitted with a local ID (which may or may not be unique) and assigned a unique registration ID. This has been discussed in length at #190.
The first bullet point at 6.2.2.1.1 Creation says:
I think it should be changed to
I think it is a small incoherence since a TD does not necessarily have an id and this gives me the idea that a TD can lack an id field and be submitted to
/td/id
where theid
inside the TD document is generated by the TDD.Additionally, the text (also the TM of the TDD) does not say that the id inside the TD and the
id
in the/td/id
must be the same. This should be made more obvious in my opinion. Also, what should the error be in this case? The HTTP semantics would say 400 but what the 400 means in this operation only includesInvalid serialization or TD.
which does not include mismatch of ids.The text was updated successfully, but these errors were encountered: