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.

openapi: Document `delivery_email` property.

orientor5ac411aeaa14
diff --git a/zerver/openapi/openapi.py b/zerver/openapi/openapi.py
index 6a892d52268..f316b6a8508 100644
--- a/zerver/openapi/openapi.py
+++ b/zerver/openapi/openapi.py
@@ -32,23 +32,6 @@ EXCLUDE_PROPERTIES = {
'realm_name_in_notifications', 'presence_enabled'],
},
},
- '/users': {
- 'get': {
- '200': ['delivery_email'],
- }
- },
- '/users/me': {
- 'get': {
- # Some responses contain undocumented keys
- '200': ['delivery_email'],
- },
- },
- '/users/{user_id}': {
- 'get': {
- # Some responses contain undocumented keys
- '200': ['delivery_email'],
- },
- },
}
# A list of endpoint-methods such that the endpoint
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index e7669511dba..259f1fd5081 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -1941,6 +1941,13 @@ paths:
description: |
The user's ID.
example: 1
+ delivery_email:
+ type: string
+ description: |
+ The user's real email address. This field is present only if
+ [email address visibility](/help/restrict-visibility-of-email-addresses) is
+ limited and you are an administrator with access to real email addresses
+ under the configured policy.
profile_data:
$ref: '#/components/schemas/profile_data'
- example:
@@ -4712,6 +4719,13 @@ components:
type: string
description: |
The time the user account was created.
+ delivery_email:
+ type: string
+ description: |
+ The user's real email address. This field is present only if
+ [email address visibility](/help/restrict-visibility-of-email-addresses) is
+ limited and you are an administrator with access to real email addresses
+ under the configured policy.
profile_data:
$ref: '#/components/schemas/profile_data'
profile_data: