formats
Reusable named validation formats referenced by field.format (beyond the built-ins email/uri/phone).
Guide: Entities and fields
formats
Section titled “formats”Reusable named validation formats referenced by field.format (beyond the built-ins email/uri/phone). Declarative and engine-agnostic (works in standalone), enforced by Alvo at the API layer and reflected into the generated OpenAPI as a pattern. For validators a regex cannot express (checksums, external lookups), a host registers an IFieldFormatValidator in embedded mode instead. Key = format name.
- Type:
map of object - Required: no
- Each entry: A reusable validation format defined by a regular expression.
- Names match
^[a-z][a-z0-9_-]{0,62}$.
formats.<name>.pattern
Section titled “formats.<name>.pattern”Regular expression the field value must match.
- Type:
string - Required: yes
formats.<name>.description
Section titled “formats.<name>.description”Human-readable description of the format (surfaced to agents and in the generated OpenAPI).
- Type:
string - Required: no