Skip to main content
function validateCoverageConfig(coverage, employees): CoverageConfigValidationResult;
Validates coverage requirements against team roles and skills. This is the primary validation function to call before building a scheduling model. It checks both roles and skills, returning a combined result with error messages.

Parameters

coverage
required
employees
required

Returns

CoverageConfigValidationResult

Example

const result = validateCoverageConfig(coverage, employees);
if (!result.valid) {
  throw new Error(result.errors.join("; "));
}