From fc655e2dd93aa92c2d948bc8df3f829a8269f3b4 Mon Sep 17 00:00:00 2001 From: Mark Eaton Date: Sat, 15 Nov 2025 23:13:16 -0500 Subject: [PATCH] add card and schema --- config/adaptive_card.json | 23 ++++++++++++++ config/request_body_json_schema.json | 46 ++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 config/adaptive_card.json create mode 100644 config/request_body_json_schema.json diff --git a/config/adaptive_card.json b/config/adaptive_card.json new file mode 100644 index 0000000..df3f7f1 --- /dev/null +++ b/config/adaptive_card.json @@ -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" + } + ] +} diff --git a/config/request_body_json_schema.json b/config/request_body_json_schema.json new file mode 100644 index 0000000..ec4b052 --- /dev/null +++ b/config/request_body_json_schema.json @@ -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 +}