ErrorsValues and types · rule
type.setting_value
Setting has the wrong kind of value.
Area 2, Values and types; not declinable; the next step is usually the agent's.
A setting with a fixed set of options takes an enum value, Type.value; quantities take numbers of the right kind:
type ContactEmail = Text { format: email}
error format takes a TextFormat value, such as TextFormat.email
--> main.jadpo:2:13
|2 | format: email | ^^^^^ a name here
- reason
formatis a constraint, and its value must be aTextFormatvalue, such asTextFormat.email.- next
- Write
TextFormat.email(agent) - rule
- type.
setting_ value - help
- https://jadpo.
dev/docs/errors/type. setting_ value
Markdown for agents: /docs/errors/type.setting_value.md.Built from Jadpo main at aee2e8f.