Validation Operators
Validation operators check that a value conforms to a specific format.
Email Validation
__email__ of **User** is a valid email__email__ of **User** is not a valid emailInteractive Example
Policy Rule
Test Data (JSON)
URL Validation
__website__ of **Company** is a valid urlInteractive Example
Policy Rule
Test Data (JSON)
UUID Validation
__id__ of **Record** is a valid uuidInteractive Example
Policy Rule
Test Data (JSON)
Phone Number Validation
__phone__ of **Contact** is a valid phone__phone__ of **Contact** is a valid phone numberInteractive Example
Policy Rule
Test Data (JSON)
Date Validation
__birthday__ of **Person** is a valid dateInteractive Example
Policy Rule
Test Data (JSON)
Time Validation
__start_time__ of **Event** is a valid timeDateTime Validation
__created_at__ of **Record** is a valid datetimeISO 8601 Validation
__timestamp__ of **Log** is a valid iso8601Interactive Example
Policy Rule
Test Data (JSON)
Format Shorthand
You can also use has the format or has format with a format name:
__email__ of **User** has the format "email"__website__ of **Company** has format "url"All Validation Types
| Operator | Format name | Example valid value |
|---|---|---|
is a valid email | email | user@example.com |
is a valid url | url | https://example.com |
is a valid uuid | uuid | 550e8400-e29b-41d4-a716-446655440000 |
is a valid phone | phone | +1-555-123-4567 |
is a valid phone number | phone number | +1-555-123-4567 |
is a valid date | date | 2024-01-15 |
is a valid time | time | 10:30:00 |
is a valid datetime | datetime | 2024-01-15 10:30:00 |
is a valid iso8601 | iso8601 | 2024-01-15T10:30:00Z |
All validation operators have a negated form: is not a valid email, is not a valid url, etc.