From bbafced254f3d22326b05b51ef3e03299c2d66ec Mon Sep 17 00:00:00 2001 From: Mateusz Mandera Date: Mon, 30 Dec 2019 23:06:50 +0100 Subject: [PATCH] api docs: Advertise "topic" argument instead of "subject" on /messages. They have the same meaning but we're transitioning away from the "subject" terminology, so we should advertise "topic" in docs. --- zerver/openapi/python_examples.py | 2 +- zerver/openapi/zulip.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/openapi/python_examples.py b/zerver/openapi/python_examples.py index cc3e10f934..dacde233a8 100644 --- a/zerver/openapi/python_examples.py +++ b/zerver/openapi/python_examples.py @@ -582,7 +582,7 @@ def send_message(client): request = { "type": "stream", "to": "Denmark", - "subject": "Castle", + "topic": "Castle", "content": "I come not, friends, to steal away your hearts." } result = client.send_message(request) diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml index 0a55709769..5b63569cfd 100644 --- a/zerver/openapi/zulip.yaml +++ b/zerver/openapi/zulip.yaml @@ -114,7 +114,7 @@ paths: "sender_id": 13215, "sender_realm_str": "example", "sender_short_name": "othello-bot", - "subject": "Castle", + "topic": "Castle", "subject_links": [], "timestamp": 1375978403, "type": "stream"