add card and schema

This commit is contained in:
Mark Eaton
2025-11-15 23:13:16 -05:00
parent 7fa7b4eeff
commit fc655e2dd9
2 changed files with 69 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
{
"type": "AdaptiveCard",
"version": "1.4",
"body": [
{
"type": "TextBlock",
"weight": "Bolder",
"size": "Large",
"text": "A LibGuides reminder bot",
"wrap": "true"
},
{
"type": "TextBlock",
"text": "@{triggerBody()?['body'][0]?['text1']}",
"wrap": "true"
},
{
"type": "TextBlock",
"text": "@{triggerBody()?['body'][1]?['text2']}",
"wrap": "true"
}
]
}
+46
View File
@@ -0,0 +1,46 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Adaptive Card payload (compat, no pattern/patternProperties)",
"type": "object",
"required": [
"type",
"version",
"body"
],
"properties": {
"type": {
"type": "string"
},
"version": {
"type": "string"
},
"$schema": {
"type": "string"
},
"body": {
"type": "array",
"items": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"text": {
"type": "string"
}
},
"additionalProperties": true
}
},
"actions": {
"type": "array",
"items": {
"type": "object"
}
}
},
"additionalProperties": true
}