Home > @polyspec/crudui-validator > FieldSpec
FieldSpec interface
CRUDUI field specification. Top level holds only first-class keys (SPEC §3 B): structure/identity, content, and the four role slots. All non-first-class detail is pushed under its dependency target (§3 C). A schema layer closes the top level (additionalProperties: false) and rejects every FORBIDDEN_META_KEYS entry here and one level below every slot/bucket.
Signature:
export interface FieldSpec
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
(Optional) Change directive (add/remove/replace, JSON Patch style). Supports deep-path set, e.g. | |||
|
(Optional) Base inheritance (file/path). The parser expands it first — an unresolved | |||
|
(Optional) Submission target kept unchanged in the template. Honored on the form root only. | |||
|
(Optional) Content — text rendered after the input. | |||
|
(Optional) Role slot — behavior (opaque script, NOT routed through the expression engine). | |||
|
(Optional) Form buttons rendered in the form footer. Honored on the form root only. | |||
|
(Optional) Content — control text of a button or action field (may be multilingual). | |||
|
unknown |
(Optional) Structure — default value. The evaluator references it when a path does not resolve (expressions.md §5 Path). | ||
|
(Optional) Content — description (may be multilingual). | |||
|
(Optional) Role slot — appearance = visibility + per-node external appearance map, with the attributes the field declares for its control and node root. | |||
|
(Optional) Content — help text (may be multilingual). | |||
|
(Optional) Structure — option source. Static array, or a dynamic | |||
|
(Optional) Content — field label (LangMap when multilingual, G3). | |||
|
(Optional) Structure — input multilingual dimension (the field value is per-language, G3). A dependency-isolation bucket and first-class. | |||
|
(Optional) Error message overrides by rule name, beside the rules they belong to. | |||
|
(Optional) Structure — repeated rows ( | |||
|
string |
(Optional) Structure / identity — field name (serialization key). | ||
|
(Optional) Role slot — type-dependent settings (the type defines and validates them; the core stays uninvolved). | |||
|
(Optional) Content — placeholder (may be multilingual). | |||
|
(Optional) Content — text rendered before the input. | |||
|
(Optional) Structure — child field map (group/object). Entry point for | |||
|
string |
Identity — the field type (e.g. | ||
|
(Optional) Role slot — validation (SPEC §3 common-role distribution). |