Interface: FormFieldConstraints
Defined in: packages/core/dist/types.d.ts:77
Structural constraints extracted from Zod's _zod.bag for a field.
Used to populate HTML validation attributes (min, max, minLength, pattern, etc.)
and to drive the L2 native-rules optimizer output.
Properties
format?
optionalformat?:string
Defined in: packages/core/dist/types.d.ts:89
String format name (from z.string().email() → 'email', etc.).
max?
optionalmax?:number
Defined in: packages/core/dist/types.d.ts:81
Maximum numeric value (from z.number().max()).
maxLength?
optionalmaxLength?:number
Defined in: packages/core/dist/types.d.ts:85
Maximum string length (from z.string().max()).
min?
optionalmin?:number
Defined in: packages/core/dist/types.d.ts:79
Minimum numeric value (from z.number().min()).
minLength?
optionalminLength?:number
Defined in: packages/core/dist/types.d.ts:83
Minimum string length (from z.string().min()).
pattern?
optionalpattern?:string
Defined in: packages/core/dist/types.d.ts:87
Regex pattern as a string (from z.string().regex()).
step?
optionalstep?:number
Defined in: packages/core/dist/types.d.ts:91
Step constraint for numeric inputs (1 for integer-constrained fields).