microsoft / AdaptiveCards

A new way for developers to exchange card content in a common and consistent way.
https://adaptivecards.io
MIT License
1.75k stars 550 forks source link

[Website] [$data property missing from the Adaptive Card Schema Explorer docs] #8795

Open olie-d opened 8 months ago

olie-d commented 8 months ago

When creating an adaptive card Adaptive Card Designer, it is possible to set the data context for any element on the card. This gets added to the json template as the property $data. The $data property is not mentioned in the linked schema document.


nghiarhythmsystems commented 6 months ago

This is causing confusion in the schema as well since the $data will be declared as unavailable even tho it is. image

jwoo-msft commented 6 months ago

@olie-d & @nghiarhythmsystems,

That's a interesting observation. By design, $data isn't included as part of AdaptiveCard, meaning it's not a property within AdaptiveCards themselves. Instead, $data is specific to the AdaptiveCard Template construct. Given this, it might be beneficial to consider developing a schema for the AdaptiveCard template. @paulcam206 & @anna-dingler would defining a schema for the AdaptiveCard Template seem appropriate to you?

RuthUlloa commented 2 months ago

Adding to the $data property. $when property is causing the same warning, for the same reason, as it is not included in the AdaptiveCard once is rendered and it is causing confusion. Does the AdaptiveCard template mentioned by @jwoo-msft sound viable to solve this issue?