Optionaloptions: FieldOptionsOptionalvalidations: Validation<any>[]Define the input type of the schema for TypeScript inference
The output value type of the field after validation. The property points to a type only and not the real value.
Type marker for camelCase output type inference
StaticrulesDefault collection of record rules
The property must be implemented for "unionOfTypes"
Define a method to parse the input value. The method is invoked before any validation and hence you must perform type-checking to know the value you are working with.
Parser function to transform the input value
This schema instance for method chaining
Push a validation to the validations chain.
Validation rule or rule builder to add
This schema instance for method chaining
Enable/disable the bail mode. In bail mode, the field validations are stopped after the first error.
Whether to enable bail mode
This schema instance for method chaining
Mark the field under validation as optional. An optional field allows both null and undefined values.
A new OptionalModifier wrapping this schema
Mark the field under validation to be null. The null value will be written to the output as well.
If optional and nullable are used together, then both undefined
and null values will be allowed.
A new NullableModifier wrapping this schema
Checks if the value is of object type. The method must be implemented for "unionOfTypes"
Enforce a minimum length on an object field
Enforce a maximum length on an object field
Enforce a fixed length on an object field
Register a callback to validate the object keys
Clones the VineRecord schema type. The applied options and validations are copied to the new instance
Compiles to record data type
VineRecord represents an object of key-value pair in which keys are unknown