From 089d209047430f99fca747eed215469467b74289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= <76261501+zecakeh@users.noreply.github.com> Date: Thu, 25 May 2023 00:26:26 +0200 Subject: [PATCH] Mark the appservice ping response `duration_ms` field as required (#1541) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Mark the appservice ping response duration_ms field as required As intended in MSC2659. Signed-off-by: Kévin Commaille * Add changelog Signed-off-by: Kévin Commaille --------- Signed-off-by: Kévin Commaille --- changelogs/application_service/newsfragments/1541.feature | 1 + data/api/client-server/appservice_ping.yaml | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 changelogs/application_service/newsfragments/1541.feature diff --git a/changelogs/application_service/newsfragments/1541.feature b/changelogs/application_service/newsfragments/1541.feature new file mode 100644 index 00000000..ee222fb0 --- /dev/null +++ b/changelogs/application_service/newsfragments/1541.feature @@ -0,0 +1 @@ +Add homeserver->appservice ping mechanism, as per [MSC2659](https://github.com/matrix-org/matrix-spec-proposals/pull/2659). Contributed by @tulir at @beeper. diff --git a/data/api/client-server/appservice_ping.yaml b/data/api/client-server/appservice_ping.yaml index 4075e901..13b7289f 100644 --- a/data/api/client-server/appservice_ping.yaml +++ b/data/api/client-server/appservice_ping.yaml @@ -82,6 +82,8 @@ paths: The duration in milliseconds that the [`/_matrix/app/v1/ping`](#post_matrixappv1ping) request took from the homeserver's point of view. + required: + - duration_ms examples: application/json: {"duration_ms": 123} 400: