Validation rules for brand categories including sensitive category checks, distinctness, validity, and count thresholds
Categories
BrandHasSensitiveCategory
| Preconditions |
|---|
orgId resolves to organization that is location owner |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that brand category is not "sensitive" and subject to review |
Example Validation Report
{
"code": "VALIDATION__BrandHasSensitiveCategory",
"severity": "WARNING",
"message": "Brand category '{{value}}' is subject to review",
"context": {
"value": "travel_and_leisure.adult_entertainment_venue.strip_club"
},
"details": {
"createdDate": "2026-10-10T11:36:02.00Z",
"submitted": [
{
"field": "$.brandDetails.categories[3]",
"value": "travel_and_leisure.adult_entertainment_venue.strip_club"
}
],
"compared": [],
"expected": []
}
}
CategoriesMustBeDistinct
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that each category is distinct |
CategoriesMustBePresent
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that categories are present | Link |
CategoriesMustBeValid
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that category is valid | Link |
CategoriesMustNotBeEmpty
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that categories is not an empty string |
CountOfItemsInCategoriesListExceedsThreshold
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that the count of items in categories does not exceed twenty (20) |