From ed9fd592ed751d1a11b46b7905fc608415c0ac73 Mon Sep 17 00:00:00 2001 From: Jean-Michael Legait Date: Tue, 6 Dec 2022 09:52:25 +0100 Subject: [PATCH] fix/855 Fix incorrect format and rename 'public' property --- docs/context/ref/ChatInitSettings.md | 4 ++-- docs/intents/ref/StartChat.md | 2 +- src/context/schemas/chatInitSettings.schema.json | 13 ++++++++----- .../static/schemas/2.0/chatInitSettings.schema.json | 13 ++++++++----- .../schemas/next/chatInitSettings.schema.json | 13 ++++++++----- .../version-2.0/context/ref/ChatInitSettings.md | 4 ++-- .../version-2.0/intents/ref/StartChat.md | 2 +- 7 files changed, 30 insertions(+), 21 deletions(-) diff --git a/docs/context/ref/ChatInitSettings.md b/docs/context/ref/ChatInitSettings.md index f24fe207c..894e0c608 100644 --- a/docs/context/ref/ChatInitSettings.md +++ b/docs/context/ref/ChatInitSettings.md @@ -26,7 +26,7 @@ https://fdc3.finos.org/schemas/next/chatInitSettings.schema.json | `members` | ContactList | No | ContactList - cf. below | | `initMessage` | string | No | `'Hello!'` | | `options.groupRecipients` | boolean | No | `true`: if false a separate chat will be created for each member | -| `options.public` | boolean | No | `true`: the room will be visible to everyone in the chat application | +| `options.isPublic` | boolean | No | `true`: the room will be visible to everyone in the chat application | | `options.allowHistoryBrowsing` | boolean | No | `true`: members will be allowed to browse past messages | | `options.allowMessageCopy` | boolean | No | `true`: members will be allowed to copy/paste messages | | `options.allowAddUser` | boolean | No | `true`: members will be allowed to add other members to the chat | @@ -58,7 +58,7 @@ const initSettings = { }, options: { groupRecipients: true, // one chat with both contacts - public: false, // private chat room + isPublic: false, // private chat room allowHistoryBrowsing: true, allowMessageCopy: true } diff --git a/docs/intents/ref/StartChat.md b/docs/intents/ref/StartChat.md index fcb4243f7..5c2a99c7d 100644 --- a/docs/intents/ref/StartChat.md +++ b/docs/intents/ref/StartChat.md @@ -51,7 +51,7 @@ const initSettings = { }, options: { groupRecipients: true, // one chat with both contacts - public: false, // private chat room + isPublic: false, // private chat room allowHistoryBrowsing: true, allowMessageCopy: true, allowAddUser: false, // John won't be authorized to add other users to the chat diff --git a/src/context/schemas/chatInitSettings.schema.json b/src/context/schemas/chatInitSettings.schema.json index 044068dbd..debc06d7c 100644 --- a/src/context/schemas/chatInitSettings.schema.json +++ b/src/context/schemas/chatInitSettings.schema.json @@ -17,11 +17,14 @@ "type": "string" }, "options": { - "groupRecipients": "boolean", - "public": "boolean", - "allowHistoryBrowsing": "boolean", - "allowMessageCopy": "boolean", - "allowAddUser": "boolean" + "type": "object", + "properties": { + "groupRecipients": {"type": "boolean"}, + "isPublic": {"type": "boolean"}, + "allowHistoryBrowsing": {"type": "boolean"}, + "allowMessageCopy": {"type": "boolean"}, + "allowAddUser": {"type": "boolean"} + } } }, "required": [ diff --git a/website/static/schemas/2.0/chatInitSettings.schema.json b/website/static/schemas/2.0/chatInitSettings.schema.json index 093cb4051..c28eac9f9 100644 --- a/website/static/schemas/2.0/chatInitSettings.schema.json +++ b/website/static/schemas/2.0/chatInitSettings.schema.json @@ -17,11 +17,14 @@ "type": "string" }, "options": { - "groupRecipients": "boolean", - "public": "boolean", - "allowHistoryBrowsing": "boolean", - "allowMessageCopy": "boolean", - "allowAddUser": "boolean" + "type": "object", + "properties": { + "groupRecipients": {"type": "boolean"}, + "public": {"type": "boolean"}, + "allowHistoryBrowsing": {"type": "boolean"}, + "allowMessageCopy": {"type": "boolean"}, + "allowAddUser": {"type": "boolean"} + } } }, "required": [ diff --git a/website/static/schemas/next/chatInitSettings.schema.json b/website/static/schemas/next/chatInitSettings.schema.json index 044068dbd..e3498bfc3 100644 --- a/website/static/schemas/next/chatInitSettings.schema.json +++ b/website/static/schemas/next/chatInitSettings.schema.json @@ -17,11 +17,14 @@ "type": "string" }, "options": { - "groupRecipients": "boolean", - "public": "boolean", - "allowHistoryBrowsing": "boolean", - "allowMessageCopy": "boolean", - "allowAddUser": "boolean" + "type": "object", + "properties": { + "groupRecipients": {"type": "boolean"}, + "public": {"type": "boolean"}, + "allowHistoryBrowsing": {"type": "boolean"}, + "allowMessageCopy": {"type": "boolean"}, + "allowAddUser": {"type": "boolean"} + } } }, "required": [ diff --git a/website/versioned_docs/version-2.0/context/ref/ChatInitSettings.md b/website/versioned_docs/version-2.0/context/ref/ChatInitSettings.md index 3b3a705c4..2b1e659dc 100644 --- a/website/versioned_docs/version-2.0/context/ref/ChatInitSettings.md +++ b/website/versioned_docs/version-2.0/context/ref/ChatInitSettings.md @@ -27,7 +27,7 @@ https://fdc3.finos.org/schemas/2.0/chatInitSettings.schema.json | `members` | ContactList | No | ContactList - cf. below | | `initMessage` | string | No | `'Hello!'` | | `options.groupRecipients` | boolean | No | `true`: if false a separate chat will be created for each member | -| `options.public` | boolean | No | `true`: the room will be visible to everyone in the chat application | +| `options.isPublic` | boolean | No | `true`: the room will be visible to everyone in the chat application | | `options.allowHistoryBrowsing` | boolean | No | `true`: members will be allowed to browse past messages | | `options.allowMessageCopy` | boolean | No | `true`: members will be allowed to copy/paste messages | | `options.allowAddUser` | boolean | No | `true`: members will be allowed to add other members to the chat | @@ -59,7 +59,7 @@ const initSettings = { }, options: { groupRecipients: true, // one chat with both contacts - public: false, // private chat room + isPublic: false, // private chat room allowHistoryBrowsing: true, allowMessageCopy: true } diff --git a/website/versioned_docs/version-2.0/intents/ref/StartChat.md b/website/versioned_docs/version-2.0/intents/ref/StartChat.md index b4792193f..188e4872f 100644 --- a/website/versioned_docs/version-2.0/intents/ref/StartChat.md +++ b/website/versioned_docs/version-2.0/intents/ref/StartChat.md @@ -52,7 +52,7 @@ const initSettings = { }, options: { groupRecipients: true, // one chat with both contacts - public: false, // private chat room + isPublic: false, // private chat room allowHistoryBrowsing: true, allowMessageCopy: true, allowAddUser: false, // John won't be authorized to add other users to the chat