From bdabe31a510cdcc637aa0e3bf68c0c6e2fd0516b Mon Sep 17 00:00:00 2001 From: Kris West Date: Fri, 15 Dec 2023 18:28:15 +0000 Subject: [PATCH] Updating Chat message example to corrected schema --- toolbox/fdc3-workbench/src/fixtures/contexts.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/toolbox/fdc3-workbench/src/fixtures/contexts.ts b/toolbox/fdc3-workbench/src/fixtures/contexts.ts index 46a40dd17..6dc3829ab 100644 --- a/toolbox/fdc3-workbench/src/fixtures/contexts.ts +++ b/toolbox/fdc3-workbench/src/fixtures/contexts.ts @@ -92,7 +92,21 @@ export const contexts: ContextItem[] = [ streamId: "j75xqXy25NBOdacUI3FNBH" } }, - message: "A message to send" + message: { + type: 'fdc3.message', + text: { + 'text/plain': 'Hey all, can we discuss the issue together? I attached a screenshot' + }, + entities: { + 0: { + type: 'fdc3.fileAttachment', + data: { + name: 'myImage.png', + dataUri: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAQMAAAD+wSzIAAAABlBMVEX///+/v7+jQ3Y5AAAADklEQVQI12P4AIX8EAgALgAD/aNpbtEAAAAASUVORK5CYII' + } + } + } + } }, schemaUrl: new URL("https://fdc3.finos.org/schemas/next/context/chatMessage.schema.json"), },