microsoft / microsoft/AdaptiveCards

[Designer] Issue in "https://adaptivecards.io/designer" website

Open
#9,098 1 comment 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

Details:

Hi Team,
While working on to the Adaptive Crds's designer website, I encountered an issue where when I create a design via using platform UI there were places in the Adaptive Card's code where data/property of fields are been added in Headline case, which is giving a warning in VS code.

Expected behavior
NA

Actual behavior
NA

Error details
No response

Card JSON
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.3",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "20px",
"minHeight": "0px",
"verticalContentAlignment": "Bottom",
"items": [
{
"type": "TextBlock",
"text": "$",
"spacing": "None", // Issue Here
"wrap": true,
"maxLines": 0,
"horizontalAlignment": "Center", // Issue Here
"weight": "Bolder", // Issue Here
"size": "Large" // Issue Here
}
],
"horizontalAlignment": "Center",
"spacing": "None" // Issue Here
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "Input.Number",
"id": "number",
"placeholder": "Enter a number",
"label": "Enter a number",
"min": 1,
"max": 1,
"value": 3,
"spacing": "None", // Issue Here
"isRequired": true,
"errorMessage": "please enter the quantity"
}
]
}
],
"spacing": "None", // Issue Here
"horizontalAlignment": "Center",
"style": "default"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Action.Submit"
}
]
}
Screenshot

No response

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 by reproducing the issue at https://adaptivecards.io/designer using the provided card JSON, then trace how the designer serializes properties such as spacing, horizontalAlignment, weight, and size. Done means generated card JSON uses the expected property casing and no longer produces the reported VS Code warnings.

Written by the indexing model from the issue text.

Assessment

Tech stack
json, vscode
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.