Type validators generally don’t use transforms since they check data types rather than string content. See Validators Overview for transform documentation.
not_null!
Checks that a value exists and is not null/None.Examples
Examples
type!
Checks that a value is of a specific type.Supported Types
Examples
Examples
not_type!
Checks that a value is NOT of a specific type. This is the negated form oftype!.
Examples
Examples
json!
Checks that a string value is valid JSON.Examples
Examples
The
json! validator only checks that the string is valid JSON. It does not validate the JSON structure. Use contains! or pattern! for content checks.email!
Checks that a string value is a valid email format.Examples
Examples