Validation rules for aggregate rating type field presence, validity, and uniqueness constraints
Type
LocationMayHaveExactlyOneTypeOfAggregateRating
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that only one (1) type of aggregate rating exists whose resource state is not DELETED |
Example Validation Report
{
"code": "VALIDATION__LocationMayHaveExactlyOneTypeOfAggregateRating",
"severity": "VIOLATION",
"message": "Only one 'type' of aggregate rating may exist"
}
TypeMustBePresent
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that type is present |
TypeMustBeValid
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that type value is USER |
TypeMustNotBeEmpty
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that type is not an empty string |
Example Validation Report
{
"code": "VALIDATION__TypeMustNotBeEmpty",
"severity": "VIOLATION",
"message": "'type' must not be empty string"
}