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

AltTextsTextMustNotBeEmpty

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

AltTextsTextMustNotBeDummyCharacters

DefinitionSeverityAPISampleMode
Validate that text is not dummy characters
VIOLATION
POST_AND_PUT
S
Example Validation Report
{
"code": "VALIDATION__AltTextsTextMustNotBeDummyCharacters",
"severity": "VIOLATION",
"message": "'{{value}}' in '{{field}}' is dummy characters",
"context": {
"value": "No value"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [
{
"field": "$.brandAssetDetails.altTexts[0].text",
"value": "No value"
}
],
"compared": [],
"expected": []
}
}

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": []
}
}

BrandCoverPhotoAltTextMustNotIncludeVulgarWord

Preconditions
intent is COVER_PHOTO
DefinitionSeverityAPISampleMode
Validate that text does not include a vulgar word
VIOLATION
POST_AND_PUT
A

BrandLogoAltTextMustNotIncludeVulgarWord

Preconditions
intent is PLACECARD_LOGO
DefinitionSeverityAPISampleMode
Validate that text does not include a vulgar word
VIOLATION
POST_AND_PUT
A