microsoft / microsoft/AdaptiveCards

Update Outdated Template Samples

Open
#7,451 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Issue

A couple of the template samples appear to be outdated in samples/Templates/Scenarios.

  1. https://github.com/microsoft/AdaptiveCards/blob/main/samples/Templates/Scenarios/FlightDetails.template.json

    Newline is accessed incorrectly. The template uses \\n, and the correct usage is \n.

  2. https://github.com/microsoft/AdaptiveCards/blob/main/samples/Templates/Scenarios/FoodOrder.template.json

    The given images are not rendering. I believe the provided URLs are out of date.

  3. check inner double quotes usages. https://github.com/microsoft/AdaptiveCards/blob/9c0bdd27d3bbd9ca973e68d2227c445e61759450/samples/Templates/Elements/Template.data.json#L38

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 samples/Templates/Scenarios/FlightDetails.template.json and FoodOrder.template.json, checking the newline escaping and whether the image URLs still render. Also inspect the inner double-quote usage in samples/Templates/Elements/Template.data.json around line 38. Done means the sample templates parse correctly and the referenced images and text display as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
json
Domain
content
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.