concrete/fixtures/rows-not-in-property
A content entry states more rows for a directly linked list than its property carries.
A content entry states more rows for a directly linked list than its property carries.
Graded by the fixtures stage of concrete check, in the tree venue. A violation reports this id and the file it failed at — see every rule and concrete check.
Reason
A list sourced by a fact table does not hold items of its own: the items are the property's rows, and the fill writes into them. That is the same exclusivity a source has everywhere — the property decides how many units there are, and the content decides what each one says. A fixture stating more items than the property carries is stating rows nothing will ever render, which hides exactly the case you were trying to preview.
Fix
State at most as many items as the property's table carries, in its order — each one only the fields a fill writes. To preview more, add them to the property: a longer list is a different listing, and that is what a second fixture is for.
Before and after
{
"property": "properties/riverside/property.json",
"content": {
"units-1": {
"slots": { "rows": [{ "note": "Corner" }, { "note": "Garden" }, { "note": "Penthouse" }] }
}
}
}{
"property": "properties/riverside/property.json",
"content": {
"units-1": {
"slots": { "rows": [{ "note": "Corner" }, { "note": "Garden" }] }
}
}
}The section's list is sourced by fact.property.units, each item a unit row and a note a
fill writes, and the riverside property carries two units.
