AdaptiveCards icon indicating copy to clipboard operation
AdaptiveCards copied to clipboard

[Designer] Setting a language sometimes results in a parse error

Open sabberworm opened this issue 9 months ago • 0 comments

Problem Description

Setting the lang property to an ISO-639 language code sometimes shows an error:

[Parse] Invalid value "en" for property "lang".

Image

The error doesn’t trigger reproducibly. It mostly happens when I manually edit the JSON slightly (even if I revert the edit afterwards).

Card JSON

{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.6",
    "body": [
        {
            "type": "TextBlock",
            "text": "Test",
            "wrap": true
        }
    ],
    "lang": "en"    
}

sabberworm avatar Mar 31 '25 10:03 sabberworm