Creates a new VineNull instance with optional configuration.
Optionaloptions: Partial<FieldOptions>Field options like bail mode (defaults allow null)
The input type of the schema (type-only property)
The output type of the schema (type-only property)
The camelCase output type of the schema (type-only property)
The subtype identifier for the literal schema field
Unique name identifier for union type resolution
Type checker function to determine if a value is null. Required for "unionOfTypes" functionality.
The value to check
True if the value is null
Clones the VineNull schema type. The applied options are copied to the new instance.
A cloned instance of this VineNull schema
Converts the schema to JSON Schema format. Returns a schema with type 'null'.
Compiles the schema type to a compiler node for validation.
The name of the property being validated
Reference store for tracking parsers and validators
Parser options including camelCase conversion
VineNull represents a schema type that only accepts null values. Typically used inside union types to explicitly allow null as a valid value.
Example