Skip to main content

Validation rules for brand asset alt texts including locale requirements, text content, and URL restrictions

Alt Texts

AltTextsLocaleMustBeDistinct

DefinitionSeverityAPISampleMode
Validate that locale is distinct
VIOLATION
POST_AND_PUT
S

AltTextsLocaleMustBePresent

Preconditions
altTexts is present
DefinitionSeverityAPISampleMode
Validate that locale is present
VIOLATION
POST_AND_PUT
Link
S

AltTextsLocaleMustBeValid

DefinitionSeverityAPISampleMode
Validate that locale is valid
VIOLATION
POST_AND_PUT
Link
S

AltTextsLocaleMustNotBeEmpty

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

AltTextsTextMustBePresent

Preconditions
altTexts is present
DefinitionSeverityAPISampleMode
Validate that text is present
VIOLATION
POST_AND_PUT
Link
S

AltTextsTextMustNotBeEmpty

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

AltTextsTextMustNotIncludeURL

DefinitionSeverityAPISampleMode
Validate that text does not include a URL
VIOLATION
POST_AND_PUT
Link
S
Example Validation Report
{
"code": "VALIDATION__AltTextsTextMustNotIncludeURL",
"severity": "VIOLATION",
"message": "'{{text}}' must not include a URL",
"context": {
"text": "Quo http://www.example.com/ cumque expedita rem corrupti debitis et quam soluta et minus sapiente sit cumque voluptatem."
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [
{
"field": "$.brandAssetDetails.altTexts[0].text",
"value": "Quo http://www.example.com/ cumque expedita rem corrupti debitis et quam soluta et minus sapiente sit cumque voluptatem."
}
],
"compared": [],
"expected": []
}
}

AltTextsTextMustNotIncludeVulgarWord

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