microsoft / microsoft/AdaptiveCards

[Designer] Payload Editor/Element Properties Can't Agree on Values or Types

Open
#8,591 0 comments 0 reactions 1 assignee View on GitHub

@anna-dingler is already working on this.

Since Jun 29, 2023.

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

Description

For example, I use the Element Properties panel to select "Small" for an Image element's size. The Card Payload Editor claims that "Small" is unacceptable, and that the "valid" values are "auto", "stretch", "small", "medium", "large". However, if I change the value to "small" in the Payload Editor, a new error appears: 'Incorrect type. Expected "object".' But really, it isn't an 'object' that is expected, at least not in the json sense; it's a particular string, "small", from a list of acceptable strings.

I thought, "surely this is because I continue to use Firefox," but no, Chrome exhibits the same behavior.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.