Scaffold findings
The findings a REST resource scaffold reports before it creates anything. An error stops the scaffold: nothing is created, and the CLI exits 2. A warning is shown and the mocks are still created.
| Code | Severity | Means | What to do |
|---|---|---|---|
templating-off |
Error | The project does not render response templates, so the mocks would answer their templates as text. The scaffold never changes a setting for you | Turn on response templating in the project’s settings, then scaffold again |
operation-missing |
Error | From a contract: the project has no contract, the item path is not the collection path and one parameter, or the active revision lacks an operation asked for | Fix the paths, or leave out the operations the contract does not have |
same-request |
Warning | An existing mock already answers the same requests as a planned one; the match order decides which answers | Delete or deactivate the existing mock, or keep it on purpose |
collection-written-elsewhere |
Warning | Another mock also writes the collection | Check that both mean the same records, or choose another name |
mock-limit |
Warning | The project would hold more mocks than the plan lets it activate at once | Delete or deactivate other mocks first; see the limits page |
seed-skipped |
Warning | The examples are not seeded: a record lacks the id field, they do not fit the plan’s data store, or the collection already holds records | Fix the examples, or fill the collection another way |
operation-already-mocked |
Warning | From a contract: an operation already has a mock linked, such as one an import created, so the two will be siblings | Delete one of them, or keep both and let the match order decide |
shape-differs |
Warning | From a contract: the contract’s list response is an array while the scaffold answers an envelope, or the other way round | Scaffold with the other shape, or edit the list mock to match |
Each finding names the planned mock it is about, by its part of the resource (list, create, conflict, read, replace, patch, delete or missing), and the existing mock it found, if any.
A seed that fails after the mocks were created is not a finding: the mocks stay, the CLI prints the reason and exits 2.
A preview is valid only for the project as it was. If the project’s response templating, or a mock a finding names, changes before you confirm, the scaffold refuses and nothing is created; preview again.