Collect the ids a list of records declares, reporting each blank or
repeated one.
Each record's id is checked at <path>[<index>].id: a blank id gets a type
violation <label> id must be non-empty, and an id already seen earlier in
the list gets a type violation <label> id "<id>" must be unique on the
later record. Every id, blank or repeated included, is in the returned set,
so references to it resolve and the one defect is reported once, on the
declaration.
Collect the ids a list of records declares, reporting each blank or repeated one.
Each record's id is checked at
<path>[<index>].id: a blank id gets atypeviolation<label> id must be non-empty, and an id already seen earlier in the list gets atypeviolation<label> id "<id>" must be uniqueon the later record. Every id, blank or repeated included, is in the returned set, so references to it resolve and the one defect is reported once, on the declaration.