-
Notifications
You must be signed in to change notification settings - Fork 541
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
Adaptive Card v1.6 #7105
Adaptive Card v1.6 #7105
Conversation
- Add support for toplevel property `metadata` and `metadata.webUrl` - Add support for `expires` property in `refresh`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved but some minor verbiage updates may help. @paulcam206 could you also poke into this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good -- should fix indentation in AdaptiveCard.json
though...
* Adaptive Card v1.6 - Add support for toplevel property `metadata` and `metadata.webUrl` - Add support for `expires` property in `refresh` * Move changes to src folder * Updating description for refresh.expires * Indent and TOC fix * Adding version to expires Co-authored-by: Sowrabh N R S <sowrabh@users.noreply.github.com> Co-authored-by: Karthik Baskar <kabaska@microsoft.com> Co-authored-by: karthikbaskar-ms <72971116+karthikbaskar-ms@users.noreply.github.com> Co-authored-by: Vsevolod <sevkorobot@gmail.com> Co-authored-by: Matt Hidinger <matt.hidinger@gmail.com> Co-authored-by: Sowrabh N R S <sonrs@microsoft.com>
Changes made:
metadata
andmetadata.webUrl
expires
property inrefresh
Details:
Metadata and
metadata.webUrl
Metadata is a top level property to host non-functionality related metadata properties that do not affect rendering or actionability. The first property we are introducing here is the
webUrl
which can be used as a fallback by hosts to redirect users to the URL and uniquely map cards to their source URL.refresh.expires
propertyrefresh.expires
is a way for card authors to indicate the freshness of content delivered. The canonical scenario is a flight tracking card. If the flight is a month away, the developer could set the expiration weekly, but as the flight time approaches the expiration window can be reduced.The client is able to use this information as it sees fit, up to and including automatically refreshing the content if the expiration time has passed or avoiding refresh while the content is still valid.
Example payload
Microsoft Reviewers: Open in CodeFlow