Interface: FormFieldConstraints
Defined in: packages/core/src/types.ts:74
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/src/types.ts:86
String format name (from z.string().email() → 'email', etc.).
max?
optionalmax?:number
Defined in: packages/core/src/types.ts:78
Maximum numeric value (from z.number().max()).
maxLength?
optionalmaxLength?:number
Defined in: packages/core/src/types.ts:82
Maximum string length (from z.string().max()).
min?
optionalmin?:number
Defined in: packages/core/src/types.ts:76
Minimum numeric value (from z.number().min()).
minLength?
optionalminLength?:number
Defined in: packages/core/src/types.ts:80
Minimum string length (from z.string().min()).
pattern?
optionalpattern?:string
Defined in: packages/core/src/types.ts:84
Regex pattern as a string (from z.string().regex()).
step?
optionalstep?:number
Defined in: packages/core/src/types.ts:88
Step constraint for numeric inputs (1 for integer-constrained fields).