Error Codes
FA-SCH-004
Available since 0.1.0
A field has a value outside what it allows.
| Severity | Error: the definition is not loaded |
|---|---|
| Category | schema |
| Message | Value {value} of '{field}' violates its allowed domain ({constraint}). |
| Suggestion | Change '{field}' to {constraint}. |
| Since | 0.1.0 |
Why this happened
The field exists and has the right kind of value, but not one it accepts: a word that is not in its list of options, a number that is too big or too small, or a combination of fields that does not make sense together. The message says which values are allowed.
Wrong
A storage direction that is not one of the options:
{
"id": "input",
"resource_type": "foundry_apparatus:item",
"slots": 1,
"direction": "inside"
}machines/iron_smelter.json:13:20 /storages/0/direction [FA-SCH-004] Value 'inside' of 'direction' violates its allowed domain (one of in, out, both).Fixed
{
"id": "input",
"resource_type": "foundry_apparatus:item",
"slots": 1,
"direction": "in"
}How to fix
Change the value to one of those listed in the message (here, in, out or both). The reference pages list the allowed values of every field.