microsoft / microsoft/AdaptiveCards
[Designer] Setting a language sometimes results in a parse error
Open
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".
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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