concrete/fixtures/reference-invalid
A fixture document names a file outside its own folder, or one that does not exist.
A fixture document names a file outside its own folder, or one that does not exist.
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
Every file a fixture document names is a path relative to the document, and it stays inside
the document's own folder. The fixture list names its content fixtures, a content fixture
names its property, and a property names its media files. A property then owns everything in
its folder, so removing the folder removes the property and nothing else. A path that climbs
out with ../, an absolute path or a URL breaks that, and a path to a file that is not there
leaves the fixture, or the property, with nothing to load.
Fix
Keep each file beside or below the document that names it, and name it by its relative path.
A property's media goes in a folder next to its property.json. If two properties need the
same photo, each keeps its own copy.
Before and after
{
"uploads": [{ "id": "deck", "kind": "image", "file": "../shared/deck.jpg" }]
}{
"uploads": [{ "id": "deck", "kind": "image", "file": "media/deck.jpg" }]
}concrete/fixtures/document-invalid
A fixture document does not parse, or does not match the template: an unknown key, slot or field, a value of the wrong kind, a sourced slot stated without its override mark, or one instance stated twice.
concrete/fixtures/instance-not-placed
A content entry names an instance the composition does not place.
