Validation rules for caller ID department field including validity and empty string checks
Department
DepartmentMustBeValid
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that department value is valid | Link |
Example Validation Report
{
"code": "VALIDATION__DepartmentMustBeValid",
"severity": "VIOLATION",
"message": "'department' value '{{value}}' is invalid",
"context": {
"value": "baz"
},
"details": {
"createdDate": "2026-09-01T21:00:59.865Z",
"submitted": [
{
"field": "$.callerIdDetails.department",
"value": "baz"
}
],
"compared": [],
"expected": []
}
}
DepartmentMustBeValidForUseWithBrandPrimaryCategory
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that department value is valid for use in conjunction with the brand's primary category | Link |
Example Validation Report
{
"code": "VALIDATION__DepartmentMustBeValidForUseWithBrandPrimaryCategory",
"severity": "VIOLATION",
"message": "'department' value '{{value}}' is not valid for use with brand's primary category",
"context": {
"value": "Casino"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [
{
"field": "$.callerIdDetails.department",
"value": "Casino"
}
],
"compared": [
{
"field": "$.brandDetails.categories[0]",
"value": "dining.restaurant.bbq_restaurant"
}
],
"expected": []
}
}
DepartmentMustNotBeEmpty
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that department is not an empty string |
Example Validation Report
{
"code": "VALIDATION__DepartmentMustNotBeEmpty",
"severity": "VIOLATION",
"message": "'department' must not be empty string"
}