Photo caption validation rules for alt text requirements, locale handling, length constraints, and content restrictions
Photo Captions
CaptionsAltTextShouldNotMatch
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that altText does not match among different locale values |
CaptionsAltText_SuspectedUnintentionalSequentialWordRepetition
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that altText does not include an unintentional repetitive sequence of words |
PhotoCaptionsAltTextMustBePresent
| Preconditions |
|---|
captions are present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that altText is present | Link |
PhotoCaptionsAltTextMustNotBeEmpty
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that altText is not an empty string |
PhotoCaptionsAltTextMustNotBeEntirelyNumeric
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that the altText value is not entirely numeric |
PhotoCaptionsAltTextMustNotExceedMaximum
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that altText length does not exceed a maximum value (255) |
PhotoCaptionsAltTextMustExceedMinimum
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that altText length exceeds a minimum value (5) |
PhotoCaptionsAltTextMustNotIncludeUrl
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that altText does not include a URL | Link |
PhotoCaptionsAltTextHasUnsupportedCharacter
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that altText does not include an unsupported character | Link |
PhotoCaptionsAltTextMustNotBeDummyCharacters
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that altText is not dummy characters | Link |
Example Validation Report
{
"code": "VALIDATION__PhotoCaptionsAltTextMustNotBeDummyCharacters",
"severity": "VIOLATION",
"message": "'{{altText}}' is dummy characters",
"context": {
"altText": "No value"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [],
"compared": [],
"expected": []
}
}
PhotoCaptionsAltTextMustNotIncludeVulgarWord
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that altText does not include a vulgar word |
PhotoCaptionsLocaleMustBeDistinct
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that each locale is distinct |
PhotoCaptionsLocaleMustBePresent
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that locale is present |
PhotoCaptionsLocaleMustBeValid
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that locale is valid | Link |