Review interaction statistics validation rules for view counts, engagement metrics, and data integrity
Interaction Statistics
InteractionStatisticsListMustNotIncludeNulls
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that a list does not include null | Link |
InteractionStatisticsMustNotBeEmptyArray
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that interactionStatistics is not an empty array |
Example Validation Report
{
"code": "VALIDATION__InteractionStatisticsMustNotBeEmptyArray",
"message": "'{{field}}' must be omitted or contain at least one element; empty arrays are not allowed.",
"severity": "VIOLATION",
"context": {
"field": "interactionStatistics"
},
"details": {
"compared": [],
"expected": [],
"submitted": [
{
"field": "$.reviewDetails.interactionStatistics",
"value": "[]"
}
],
"createdDate": "2026-03-03T13:58:43.946Z"
}
}
Interaction Type
InteractionTypeMustBePresent
| Preconditions |
|---|
interactionStatistics is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that interactionType is present |
Example Validation Report
{
"code": "VALIDATION__InteractionTypeMustBePresent",
"severity": "VIOLATION",
"message": "Field '{{field}}' must be present",
"context": {
"field": "interactionType"
}
}
InteractionTypeMustNotBeEmpty
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that interactionType is not an empty string |
InteractionTypeMustBeValid
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that interactionType value is HELPFUL |
InteractionTypeMustBeDistinct
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that each interactionType in an interactionStatistics list is distinct (1) | Link |
User Interaction Count
UserInteractionCountMustBePresent
| Preconditions |
|---|
interactionStatistics is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that userInteractionCount is present |
UserInteractionCountMustBeInteger
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that 'userInteractionCount' is an integer |