I’m using WhatsApp JSON Flow Builder (v5.0) and have an issue with base64 encoded images in my data model. The relevant part of my model looks like this:
"order_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {"type": "string"},
"title": {"type": "string"},
"description": {"type": "string"},
"image": {"type": "string"}
}
}
}
When I reference ${data.order_items}
in a form, I get this error:
Expected ‘screens[1].data.order_items.items.properties.image’ to be of type ‘’.
What should the type for the image field be to handle base64 encoded images properly?
Hi Mick, where are you using order_items
? You can try using an example src
from https://developers.facebook.com/docs/whatsapp/flows/reference/components#img to verify the base64 string is valid.