Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

api docs: Add more details around realm event types.

Tim Abbotte36f549ec64c
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index bf35efa99dd..6ddd9a43d5f 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -3207,8 +3207,20 @@ paths:
- type: object
additionalProperties: false
description: |
- Event sent to all users in a Zulip organization when the
- configuration of the organization (realm) has changed.
+ The simpler of two possible event types sent to all users
+ in a Zulip organization when the configuration of the
+ organization (realm) has changed.
+
+ Often individual settings are migrated from this format to
+ the [realm/update_dict](#realm-update_dict) event format when additional realm
+ settings are added whose values are coupled to each other
+ in some way. The specific values supported by this event
+ type are documented in the [realm/update_dict](#realm-update_dict)
+ documentation.
+
+ A correct client implementation should convert these
+ events into the corresponding [realm/update_dict](#realm-update_dict)
+ event and then process that.
properties:
id:
$ref: "#/components/schemas/EventIdSchema"
@@ -3368,11 +3380,13 @@ paths:
- type: object
additionalProperties: false
description: |
- Event sent to all users in a Zulip organization when the
- configuration of the organization (realm) has changed.
+ The more general of two event types that may be used when
+ sending an event to all users in a Zulip organization when
+ the configuration of the organization (realm) has changed.
- Unlike realm / update, supports multiple properties being changed
- in a single event.
+ Unlike the simpler [realm/update](#realm-update) event format, this
+ event type supports multiple properties being changed in a
+ single event.
properties:
id:
$ref: "#/components/schemas/EventIdSchema"
@@ -3387,9 +3401,12 @@ paths:
- update_dict
property:
type: string
+ deprecated: true
description: |
Always `"default"`. Present for backwards-compatibility with older
clients that predate the `update_dict` event style.
+
+ **Deprecated** and will be removed in a future release.
data:
type: object
description: |