Skip to main content

Review interaction statistics validation rules for view counts, engagement metrics, and data integrity

Interaction Statistics

InteractionStatisticsListMustNotIncludeNulls

DefinitionSeverityAPISampleMode
Validate that a list does not include null
VIOLATION
POST_AND_PUT
Link
S

InteractionStatisticsMustNotBeEmptyArray

DefinitionSeverityAPISampleMode
Validate that interactionStatistics is not an empty array
VIOLATION
POST_AND_PUT
S
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
DefinitionSeverityAPISampleMode
Validate that interactionType is present
VIOLATION
POST_AND_PUT
S
Example Validation Report
{
"code": "VALIDATION__InteractionTypeMustBePresent",
"severity": "VIOLATION",
"message": "Field '{{field}}' must be present",
"context": {
"field": "interactionType"
}
}

InteractionTypeMustNotBeEmpty

DefinitionSeverityAPISampleMode
Validate that interactionType is not an empty string
VIOLATION
POST_AND_PUT
S

InteractionTypeMustBeValid

DefinitionSeverityAPISampleMode
Validate that interactionType value is HELPFUL
VIOLATION
POST_AND_PUT
S

InteractionTypeMustBeDistinct

DefinitionSeverityAPISampleMode
Validate that each interactionType in an interactionStatistics list is distinct (1)
VIOLATION
POST_AND_PUT
Link
S

User Interaction Count

UserInteractionCountMustBePresent

Preconditions
interactionStatistics is present
DefinitionSeverityAPISampleMode
Validate that userInteractionCount is present
VIOLATION
POST_AND_PUT
S

UserInteractionCountMustBeInteger

DefinitionSeverityAPISampleMode
Validate that 'userInteractionCount' is an integer
VIOLATION
POST_AND_PUT
S