microsoft / microsoft/AdaptiveCards

[Authoring] Missing Icon Card element from JSONSchema

Open
#9,060 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Target Application

Teams

Application Operating System

Other

Schema Version

1.5

Problem Description

Adaptive cards editor in Teams dev portal propose Icon element but is nowhere to be found in jsonschema.
Therefore I can't use schema validation for cards using Icon element

Expected Outcome

Being able to validate cards with Icon element against adaptive card schema 1.5

Actual Outcome

Validation fails with https://adaptivecards.io/schemas/1.5.0/adaptive-card.json but renders perfectly on teams

Card JSON
{
    "type": "AdaptiveCard",
    "$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.5",
    "body": [
        {
            "type": "Icon",
            "name": "AddCircle"
        }
    ]
}
Repro Steps

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 comparing the Adaptive Cards 1.5 schema at the linked URL with the Icon element shown in the issue's card JSON. Confirm how the schema currently rejects that element; done means the same card validates successfully against the 1.5 schema.

Written by the indexing model from the issue text.

Assessment

Tech stack
json
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.