Skip to main content

Validation rules for aggregate rating type field presence, validity, and uniqueness constraints

Organization​

OrgNotAllowedToProvideAggregateRating​

DefinitionSeverityAPISampleMode
Validate that the organization is allowed to provide an aggregate rating
VIOLATION
POST
S
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​

DefinitionSeverityAPISampleMode
Validate that type is present
VIOLATION
POST_AND_PUT
S

AggregateRatingTypeMustBeValid​

DefinitionSeverityAPISampleMode
Validate that type value is USER
VIOLATION
POST_AND_PUT
S

TypeMustNotBeEmpty​

DefinitionSeverityAPISampleMode
Validate that type is not an empty string
VIOLATION
POST_AND_PUT
S
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​

DefinitionSeverityAPISampleMode
Validate that type matches the previous submittal
VIOLATION
PUT
S
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": []
}
}