From b4833b06846dead358a8cb294d6fad7998cde6bc Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 11 Sep 2024 17:57:21 +0200 Subject: [PATCH 1/3] Clarify that third-party location lookups use user-defined query parameters While 14051847653383e432ebacae2cc430cc9ebce1e0 redefined most fields to be the appropriate object type, it missed one of them. Signed-off-by: Nicolas Werner --- data/api/client-server/third_party_lookup.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/data/api/client-server/third_party_lookup.yaml b/data/api/client-server/third_party_lookup.yaml index 97547a6fc..3055b8aec 100644 --- a/data/api/client-server/third_party_lookup.yaml +++ b/data/api/client-server/third_party_lookup.yaml @@ -98,12 +98,14 @@ paths: schema: type: string - in: query - name: searchFields + name: fields description: |- One or more custom fields to help identify the third-party location. schema: - type: string + type: object + additionalProperties: + type: string responses: "200": description: At least one portal room was found. From 14ed29cf18f2c32bef072b9815a2d899dcc67787 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 11 Sep 2024 18:27:59 +0200 Subject: [PATCH 2/3] Add changelog Signed-off-by: Nicolas Werner --- changelogs/client_server/newsfragments/1947.clarification | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelogs/client_server/newsfragments/1947.clarification diff --git a/changelogs/client_server/newsfragments/1947.clarification b/changelogs/client_server/newsfragments/1947.clarification new file mode 100644 index 000000000..5128604be --- /dev/null +++ b/changelogs/client_server/newsfragments/1947.clarification @@ -0,0 +1 @@ +Clarify query parameters for third-party location lookups. From 2bdec95ddeb5fc2247fb8555f52b312bdf701226 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Tue, 12 Nov 2024 22:22:52 +0000 Subject: [PATCH 3/3] Update changelogs/client_server/newsfragments/1947.clarification --- changelogs/client_server/newsfragments/1947.clarification | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/client_server/newsfragments/1947.clarification b/changelogs/client_server/newsfragments/1947.clarification index 5128604be..3764243a2 100644 --- a/changelogs/client_server/newsfragments/1947.clarification +++ b/changelogs/client_server/newsfragments/1947.clarification @@ -1 +1 @@ -Clarify query parameters for third-party location lookups. +Correct OpenAPI specification for query parameters to `GET /_matrix/client/v3/thirdparty/location/{protocol}` endpoint.