From 9799b892de63cf8d762ff27548f681fc91635ea5 Mon Sep 17 00:00:00 2001 From: "DeepBlueV7.X" Date: Tue, 12 Nov 2024 23:24:20 +0100 Subject: [PATCH] Clarify parameter definition for third-party location lookups (#1947) While 14051847653383e432ebacae2cc430cc9ebce1e0 redefined most fields to be the appropriate object type, it missed one of them. Signed-off-by: Nicolas Werner --- changelogs/client_server/newsfragments/1947.clarification | 1 + data/api/client-server/third_party_lookup.yaml | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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..3764243a2 --- /dev/null +++ b/changelogs/client_server/newsfragments/1947.clarification @@ -0,0 +1 @@ +Correct OpenAPI specification for query parameters to `GET /_matrix/client/v3/thirdparty/location/{protocol}` endpoint. 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.