Sample input examples demonstrating validation scenarios for brand asset data and configurations
Alt Texts
AltTextsMustNotContainNulls
Scenario One
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
Sample Input
{
"altTexts": [ { null } ]
}
Scenario Two
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
Sample Input
{
"altTexts": [ null ]
}
AltTextsLocaleMustBeDistinct
Scenario One
AltTexts possessing the same locale (primary language tag and region subtag).
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
Sample Input
{
"altTexts": [
{
"text": "A barista preparing a cafe latte",
"locale": "en-US"
},
{
"text": "A barista preparing a latte",
"locale": "en-US"
}
]
}
Scenario Two
AltTexts possessing the same locale (primary language tag).
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
Sample Input
{
"altTexts": [
{
"text": "A barista preparing a cafe latte",
"locale": "en"
},
{
"text": "A barista preparing a latte",
"locale": "en"
}
]
}
Scenario Three
AltTexts possessing the same locale (primary language tag).
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
Sample Input
{
"altTexts": [
{
"text": "A barista preparing a cafe latte",
"locale": "en"
},
{
"text": "A barista preparing a latte",
"locale": "en-US"
}
]
}
ExpectedLangTagCountryNotPresent
Scenario One
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
- From the brand, the derived language spoken in the country identified as
FR(France) is french - An expected locale in altTexts is
frorfr-FR
Sample Input
{
"brandDetails": {
"partnersBrandId": "2345432",
"partnersBrandVersion": "PBV02",
"countryCodes": [ "FR" ],
"displayNames": [
{
"name": "Intermarché",
"locale": "fr",
"primary": true
}
],
"categories": [ "shopping.store.discount_store", "shopping.store.home_goods_store", "shopping.store.department_store", "shopping.store.electronics_store", "shopping.food_mart.grocery_store", "toy_store", "drugstore" ],
"urls": [
{
"url": "https://www.walmart.com",
"type": "HOMEPAGE"
}
],
"ownershipType": "BRAND_OWNER"
}
}
Locale possesses a primary language tag which corresponds with the language expected to be spoken in a country identified in the brand's list of countryCodes values
Sample Input
{
"altTexts": [
{
"text": "A barista preparing a cafe latte",
"locale": "en"
},
{
"text": "Un barista prépare un café latte",
"locale": "fr"
}
]
}
Scenario Two
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
- From the brand, the derived language spoken in the country identified as
FR(France) is french - An expected locale in altTexts is
frorfr-FR
Sample Input
{
"brandDetails": {
"partnersBrandId": "2345432",
"partnersBrandVersion": "PBV02",
"countryCodes": [ "FR" ],
"displayNames": [
{
"name": "Intermarché",
"locale": "fr",
"primary": true
}
],
"categories": [ "shopping.store.discount_store", "shopping.store.home_goods_store", "shopping.store.department_store", "shopping.store.electronics_store", "shopping.food_mart.grocery_store", "toy_store", "drugstore" ],
"urls": [
{
"url": "https://www.walmart.com",
"type": "HOMEPAGE"
}
],
"ownershipType": "BRAND_OWNER"
}
}
Locale possesses a primary language tag which corresponds with a language not expected to be spoken in a country identified in the brand's list of countryCodes values
Sample Input
{
"altTexts": [
{
"text": "A barista preparing a cafe latte",
"locale": "en"
}
]
}
Intent
HasNoIntent
Scenario One
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
Sample Input
{
"brandAssetDetails": {
"imageId": "1e863dc0-0980-11f0-9cd2-0242ac120002",
"partnersAssetId": "brand_asset_10101",
"altTexts": [
{
"text": "A barista preparing a cafe latte",
"locale": "en"
}
]
}
}
Scenario Two
Sample Input
{
"brandAssetDetails": {
"imageId": "1e863dc0-0980-11f0-9cd2-0242ac120002",
"partnersAssetId": "brand_asset_10101",
"intent": null,
"altTexts": [
{
"text": "A barista preparing a cafe latte",
"locale": "en"
}
]
}
}