Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create adapative card based on Json Schema is not working #8710

Closed
vn0ytch opened this issue Oct 16, 2023 · 1 comment
Closed

Create adapative card based on Json Schema is not working #8710

vn0ytch opened this issue Oct 16, 2023 · 1 comment

Comments

@vn0ytch
Copy link

vn0ytch commented Oct 16, 2023

Problem Description

  1. Go to https://adaptivecards.io/designer/
  2. Click left top corner "New card"
  3. Select from Json Schema
  4. Take to "Create from JSON Schema" page where I copied json schema contents and click create button
  5. Doesn't generate full Adaptive card contents based on json schema.
  6. Card Payload Editor gives adaptive card with null items
    Output

Json Schema Input example is below
[ { "id": "5f4fde50-aa9f-11ea-b5db-sdsdd", "name": "project-test", "owner": { "id": "100", "username": "John" }, "project-source": "java" }, { "id": "ed02aefe-ecdc-11ec-97dd-dfdfdf", "name": "Test-Demo", "owner": { "id": "200", "username": "Mike" }, "project-source": "python" } ]
Please help me to generate adaptive card based on JSON.

Card JSON

`
{
    "type": "AdaptiveCard",
    "body": [
        {
            "type": "Container",
            "items": [
                null,
                null
            ]
        }
    ]
}
`

Screenshot

Screenshot 2023-10-16 at 10 52 43 AM
Screenshot 2023-10-16 at 10 53 01 AM

@jwoo-msft
Copy link
Member

@vn0ytch,

I suggest starting with a blank card and using our designers to design the cards. You can drag and drop elements from the card element pane on the left. Doing so will help you better understand the AdaptiveCards schema. After familiarizing yourself with this, the information found at this link will be invaluable. It delves into the AdaptiveCards' Templating feature. While the JSON Schema you provided can be utilized in templating, it's essential to create an AdaptiveCards template that can process that data. I am closing this issue for now. Please respond to this thread if needed, and refrain from creating a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Closed
Development

No branches or pull requests

2 participants