Sample input examples demonstrating validation scenarios for call-to-action configurations and provider management
Flexible Action Link
FlexibleActionLinkMustNotBeMoved
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
Sample Input
[
{
"type": "ORDER",
"providers": [
{
"url": "https://ubereats.com/food-ordering/southerleighfinedining",
"relationship": "AUTHORIZED",
"appStoreUrl": "https://apps.apple.com/us/app/uber-eats-food-delivery/id1058959277"
},
{
"url": "https://yelp.com/order/southerleighfinedining",
"relationship": "AUTHORIZED",
"appStoreUrl": "https://apps.apple.com/us/app/yelp-food-delivery-reviews/id284910350"
},
{ /* appStoreUrl is absent. This is a flexible action link */
"url": "https://southerleighfinedining.com/menu-ordering",
"relationship": "OWNER"
}
]
}
]
Providers
CallToActionsProvidersListMustNotIncludeNulls
Scenario One
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
Sample Input
[
{
"type": "ORDER",
"providers": [ null ]
}
]
Scenario Two
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
Sample Input
[
{
"type": "ORDER",
"providers": [ { null } ]
}
]
Type
CallToActionsTypeMustBeDistinct
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
Sample Input
[
{
"type": "ORDER",
"providers": [
{ /* appStoreUrl is absent. This is a flexible action link */
"url": "https://southerleighfinedining.com/menu-ordering",
"relationship": "OWNER"
},
{
"quicklinkUrl": "https://ubereats.com/food-ordering/southerleighfinedining",
"url": "AUTHORIZED",
"appStoreUrl": "https://apps.apple.com/us/app/uber-eats-food-delivery/id1058959277"
}
]
},
{
"type": "ORDER",
"providers": [
{
"url": "https://yelp.com/order/southerleighfinedining",
"relationship": "AUTHORIZED",
"appStoreUrl": "https://apps.apple.com/us/app/yelp-food-delivery-reviews/id284910350"
}
]
}
]