ColumnValidationService
Service for validating column configurations to ensure consistency with ColumnModel interface
and prevent invalid column definitions.
Performs comprehensive validation on all column definitions in COLUMN_CONFIG:
- Required fields: All columns must have key, label, format, and isVisible properties
- Unique keys: All key values must be unique within each column collection
- Function validation: format and isVisible must be callable functions
- Data types: key and label must be non-empty strings
Constructor
constructor();
Properties
loggerService
loggerService: any
validate
validate: () => void
Validates all column configurations in COLUMN_CONFIG for structural correctness.
Checks:
- All required fields (key, label, format, isVisible) are present in each column
- key and label are non-empty strings
- format and isVisible are functions (not other types)
- All keys are unique within each column collection