Adding Custom Validation

This section describes how to create custom validators, validation errors, and validation error handlers in Atoti Limits.

Limit structures, limits, and incidents are validated whenever they are created or updated. The default implementations of these validation interfaces provide reasonable checks to promote data quality, but you may wish to customize or extend these checks to suit your organization’s needs.

Implementing custom validation is not required, but it can be useful for enforcing business rules or data quality standards. Additionally, any single component or combination of these components can be customized, and any components not customized will use default implementations. For example, you could choose to implement a custom ILimitValidator but use DefaultLimitStructureValidator and DefaultIncidentValidator. Alternatively, you could choose to implement a custom IValidationErrorHandler that overrides DefaultValidationErrorHandler in the default validators.