Alert and Confirm deserialization error
Closed this issue · 0 comments
dantes-git commented
Description
On mobile platforms and bff we have a different definition from Web for Alert and Confirm. The properties onPressOk and onPressCancel accept only one action on mobile, while on the Web these properties accept a list of actions.
Expected Behavior
The platforms must implement the same contract.
Code example, screenshot, or link to a repository:
{
"_beagleComponent_": "beagle:container",
"children": [
{
"_beagleComponent_": "beagle:text",
"text": "Test",
"alignment": "CENTER"
},
{
"_beagleComponent_": "beagle:button",
"text": "Beagle Button",
"alignment": "CENTER",
"onPress": [
{
"_beagleAction_": "beagle:alert",
"onPressOk": [
{
"_beagleAction_": "beagle:setcontext",
"contextId": "id",
"value": "string"
},
{
"_beagleAction_": "beagle:setcontext",
"contextId": "id",
"value": "string"
}
],
"analytics": {
"attributes": [
"message"
]
},
"message": "Analytics Alert"
}
]
}
]
}