microsoft / microsoft/AdaptiveCards
[Designer] Payload Editor/Element Properties Can't Agree on Values or Types
@anna-dingler is already working on this.
Since Jun 29, 2023.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.