microsoft / microsoft/AdaptiveCards

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

Open
#9,145 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Designer Bug
Dominant language
C#
Stars
2k
Forks
595
Avg merge
1d 19h
Merged PRs (30d)
1

Description

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"    
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied Card JSON and the Designer's parsing path for the lang property, then try to reproduce the error after editing and reverting the JSON. Done means valid ISO-639 values such as "en" parse consistently without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
json
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.