Validation rules for aggregate rating type field presence, validity, and uniqueness constraints
Organization
OrgNotAllowedToProvideAggregateRating
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that the organization is allowed to provide an aggregate rating |
Example Validation Report
{
"code": "VALIDATION__OrgNotAllowedToProvideAggregateRating",
"severity": "VIOLATION",
"message": "Organization not allowed to provide aggregate rating",
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [],
"compared": [],
"expected": []
}
}
Type
TypeMustBePresent
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that type is present |
AggregateRatingTypeMustBeValid
| 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",
"context": {
"type": "type"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [],
"compared": [],
"expected": []
}
}
AggregateRatingTypeMustNotBeUpdated
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that type matches the previous submittal |
Example Validation Report
{
"code": "VALIDATION__AggregateRatingTypeMustNotBeUpdated",
"severity": "VIOLATION",
"message": "Field '{{field}}' must be updated",
"context": {
"field": "type"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [],
"compared": [],
"expected": []
}
}