Skip to main content

Photo caption validation rules for alt text requirements, locale handling, length constraints, and content restrictions

Photo Captions

CaptionsAltTextShouldNotMatch

DefinitionSeverityAPISampleMode
Validate that altText does not match among different locale values
WARNING
POST_AND_PUT
S

CaptionsAltText_SuspectedUnintentionalSequentialWordRepetition

DefinitionSeverityAPISampleMode
Validate that altText does not include an unintentional repetitive sequence of words
WARNING
POST_AND_PUT
S

PhotoCaptionsAltTextMustBePresent

Preconditions
captions are present
DefinitionSeverityAPISampleMode
Validate that altText is present
VIOLATION
POST_AND_PUT
Link
S

PhotoCaptionsAltTextMustNotBeEmpty

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

PhotoCaptionsAltTextMustNotBeEntirelyNumeric

DefinitionSeverityAPISampleMode
Validate that the altText value is not entirely numeric
VIOLATION
POST_AND_PUT
S

PhotoCaptionsAltTextMustNotExceedMaximum

DefinitionSeverityAPISampleMode
Validate that altText length does not exceed a maximum value (255)
VIOLATION
POST_AND_PUT
S

PhotoCaptionsAltTextMustExceedMinimum

DefinitionSeverityAPISampleMode
Validate that altText length exceeds a minimum value (5)
VIOLATION
POST_AND_PUT
S

PhotoCaptionsAltTextMustNotIncludeUrl

DefinitionSeverityAPISampleMode
Validate that altText does not include a URL
VIOLATION
POST_AND_PUT
Link
S

PhotoCaptionsAltTextHasUnsupportedCharacter

DefinitionSeverityAPISampleMode
Validate that altText does not include an unsupported character
VIOLATION
POST_AND_PUT
Link
S

PhotoCaptionsAltTextMustNotIncludeVulgarWord

DefinitionSeverityAPISampleMode
Validate that altText does not include a vulgar word
VIOLATION
POST_AND_PUT
A

PhotoCaptionsLocaleMustBeDistinct

DefinitionSeverityAPISampleMode
Validate that each locale is distinct
VIOLATION
POST_AND_PUT
S

PhotoCaptionsLocaleMustBePresent

DefinitionSeverityAPISampleMode
Validate that locale is present
VIOLATION
POST_AND_PUT
S

PhotoCaptionsLocaleMustBeValid

DefinitionSeverityAPISampleMode
Validate that locale is valid
VIOLATION
POST_AND_PUT
Link
S