[Rendering] AdaptiveTableCell is incorrectly serialize to AdaptiveContainer
Target Platforms
Other
SDK Version
3.1.0
Application Name
MIcrosoft Teams
Problem Description
When serializing a TableCell to JSON the type of TableCell is sereialized to Container. The correct type needs to be TableCell.
Workaround: set Type of TableCell as "TableCell" and it works fine.
Example:
"type": "TableRow", "cells": [ { "type": "Container", "items": [ { "type": "TextBlock", "weight": "bolder", "text": "Nome do Arquivo", "wrap": true } ] } ]
Screenshots
No response
Card JSON
{
"type": "message",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"type": "AdaptiveCard",
"version": "1.5",
"body": [
{
"type": "TextBlock",
"size": "extraLarge",
"weight": "bolder",
"text": "Core Test"
},
{
"type": "Table",
"rows": [
{
"type": "TableRow",
"cells": [
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"weight": "bolder",
"text": "Filename",
"wrap": true
}
]
},
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"weight": "bolder",
"text": "Filetype",
"wrap": true
}
]
}
]
}
],
"columns": [
{
"width": 1
},
{
"width": 1
}
],
"firstRowAsHeaders": true,
"verticalCellContentAlignment": "center"
}
],
"msteams": {
"width": "Full"
}
}
}
]
}
Sample Code Language
No response
Sample Code
No response
@vascobueno - Thank you for bringing this issue to our attention.
We were able to reproduce the issue. We have logged this as a bug, and our engineering team will look into it.
Using Container:
Using TableCell:
While we cannot guarantee a fix at this stage, we will keep you updated with any progress or changes. Please note that in some cases, the bug may be by design or deprioritized due to platform updates, but we will continue to monitor the bug closely.
Thank you again for your cooperation!
@vascobueno - The engineering team has informed us that setting the type of a TableCell to TableCell is not just a workaround—it's the only supported approach, as outlined in the documentation: TableCell - Adaptive Cards.