zulip/zerver
Lauryn Menard 5774486c12 api-docs: Correct error documentation for api/deactivate-own-user.
In commit 3e369bcf9, the `code` field for api/deactivate-own-user
was incorrectly documented as "BAD_REQUEST", which is the code for
the similar error returned by api/deactivate-user.

Corrects the error code to be "CANNOT_DEACTIVATE_LAST_USER" and
adds documentation for the two other fields returned by this
error response.

Note that the descriptions for the fields are added in the error
response schema will not be rendered in our current documentation.

They are rendered in other third-party tools and are therefore
good to have in our OpenAPI documentation. The description that
will be rendered in our documentation is the general error response
schema description and that is also updated for details about the
extra fields in this error response.
2023-09-28 08:39:29 -07:00
..
actions build_message_send_dict: Remove redundant realm arg. 2023-09-20 09:55:25 -07:00
data_import python: Elide unnecessary list wrappers. 2023-09-13 12:41:23 -07:00
integration_fixtures/nagios
lib typed_endpoint: Rename WebhookPayload to JsonBodyPayload. 2023-09-27 14:21:42 -07:00
management realm: Differentiate reserved realms from in-use realms. 2023-09-25 12:48:14 -07:00
migrations org_settings: Add backend for `realm_jitsi_server_url` setting. 2023-09-21 17:39:10 -07:00
openapi api-docs: Correct error documentation for api/deactivate-own-user. 2023-09-28 08:39:29 -07:00
tests email-notifications: Add helper function to TestFollowupEmailDelay. 2023-09-27 17:38:05 -07:00
tornado python: Delete superfluous parens. 2023-09-13 13:40:19 -07:00
transaction_tests docs: Fix typos caught by ‘typos’. 2023-09-06 18:59:05 -07:00
views topic: Add realm limits to topic history queries. 2023-09-27 10:22:42 -07:00
webhooks typed_endpoint: Rename WebhookPayload to JsonBodyPayload. 2023-09-27 14:21:42 -07:00
worker python: Replace functools.partial with type-safe returns.curry.partial. 2023-09-11 18:03:45 -07:00
__init__.py
apps.py requirements: Upgrade Python requirements. 2023-04-03 22:39:21 -07:00
context_processors.py emails: Add corporate_enabled to context for emails. 2023-05-01 10:32:43 -07:00
decorator.py logging_util: Remove dependence on get_current_request. 2023-07-11 22:23:47 -07:00
filters.py error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
forms.py realm: Differentiate reserved realms from in-use realms. 2023-09-25 12:48:14 -07:00
logging_handlers.py error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
middleware.py views: Add a /health healthcheck endpoint. 2023-09-20 09:53:59 -07:00
models.py models: Add more comments documenting AbstractMessage. 2023-09-27 11:49:04 -07:00
signals.py demo-orgs: Create dev environment demo organization without email. 2023-08-31 15:02:16 -07:00