Skip to content

Commit

Permalink
Updating Chat message example to corrected schema
Browse files Browse the repository at this point in the history
  • Loading branch information
kriswest committed Dec 15, 2023
1 parent b51dfd4 commit bdabe31
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion toolbox/fdc3-workbench/src/fixtures/contexts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
},
Expand Down

0 comments on commit bdabe31

Please sign in to comment.