ErrorsValues and types · rule
type.constraint_base
Constraint does not fit the type's base.
Area 2, Values and types; not declinable; the next step is usually the agent's.
type Nickname = Text { min: 1}
error min doesn't apply to a Text type
--> main.jadpo:2:5
|2 | min: 1 | ^^^ doesn't fit the base
- reason
minconstrainsInt,Decimal,Duration,Money,Percentageand quantity types.- next
- Remove
min, or use a constraint that fits (agent) - rule
- type.
constraint_ base - help
- https://jadpo.
dev/docs/errors/type. constraint_ base
Markdown for agents: /docs/errors/type.constraint_base.md.Built from Jadpo main at aee2e8f.