Skip to main content

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

Type

LocationMayHaveExactlyOneTypeOfAggregateRating

DefinitionSeverityAPISampleMode
Validate that only one (1) type of aggregate rating exists whose resource state is not DELETED
VIOLATION
POST_AND_PUT
S
Example Validation Report
{
"code": "VALIDATION__LocationMayHaveExactlyOneTypeOfAggregateRating",
"severity": "VIOLATION",
"message": "Only one 'type' of aggregate rating may exist"
}

TypeMustBePresent

DefinitionSeverityAPISampleMode
Validate that type is present
VIOLATION
POST_AND_PUT
S

TypeMustBeValid

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"
}