Ok, the mistake was in my code. I was adding an empty layout property when I was marshaling.
The spacer should not be in the sample anymore though.
I copied the example coming from https://developers.line.biz/flex-simulator/ into a Flex Message.
I removed the spacer
component as it is not supported anymore (maybe the example should be updated)
Here is the payload I send to the Messaging API: https://app.snipsave.com/snippet/pwOTnHyvTyylMPlK42
I received the following error from the Messaging API:
{
"message": "A message (messages[0]) in the request body is invalid",
"details": [
{
"message": "invalid property",
"property": "/hero/layout"
}
]
}
Since the hero
is an image, complaining about an invalid layout
is rather unexpected
Ok, the mistake was in my code. I was adding an empty layout property when I was marshaling.
The spacer should not be in the sample anymore though.