Validation Rules
Add validation to your schemas with 47+ field-level rules and 29 cross-field rules. Maintain data quality with custom messages and severity levels.
Validation rules verify that data meets requirements before processing. The schema editor includes 47+ field-level rules and 29 cross-field rules, covering everything from simple required checks to complex conditional validation.
Adding Validation Rules
General Rules
These rules apply to all field types.
String Rules
Validation rules specific to string fields.
The following schemas demonstrate pattern validation with custom error messages:
Represents a patient in the healthcare system. Lineage maps to the Patient node in the healthcare graph domain model.
Represents a healthcare provider (doctor, nurse, specialist). Lineage maps to the Provider node in the healthcare graph.
Numeric Rules
Validation rules for integer and number fields.
Boolean Rules
Array Rules
Object Rules
Cross-Field Validation
Cross-field rules validate relationships between multiple fields. Add these in the Cross-Field Validation section of the schema editor.
Custom Error Messages
Each validation rule can have a custom error message with the following properties.