From 14051847653383e432ebacae2cc430cc9ebce1e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= <76261501+zecakeh@users.noreply.github.com> Date: Wed, 5 Jul 2023 18:18:58 +0200 Subject: [PATCH] Fix schema of custom fields in query for appservice API (#1584) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix schema of custom fields in query for appservice API Signed-off-by: Kévin Commaille * Add changelog Signed-off-by: Kévin Commaille * Remove ellipses Signed-off-by: Kévin Commaille --------- Signed-off-by: Kévin Commaille --- .../newsfragments/1584.clarification | 1 + data/api/application-service/protocols.yaml | 12 ++++++++---- data/api/client-server/third_party_lookup.yaml | 6 ++++-- 3 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 changelogs/application_service/newsfragments/1584.clarification diff --git a/changelogs/application_service/newsfragments/1584.clarification b/changelogs/application_service/newsfragments/1584.clarification new file mode 100644 index 00000000..098c1260 --- /dev/null +++ b/changelogs/application_service/newsfragments/1584.clarification @@ -0,0 +1 @@ +Fix JSON schema of custom fields in query. diff --git a/data/api/application-service/protocols.yaml b/data/api/application-service/protocols.yaml index 59dff5b0..dddd26d4 100644 --- a/data/api/application-service/protocols.yaml +++ b/data/api/application-service/protocols.yaml @@ -96,12 +96,14 @@ paths: schema: type: string - in: query - name: fields... + name: fields description: |- One or more custom fields that are passed to the application service to help identify the user. schema: - type: string + type: object + additionalProperties: + type: string responses: "200": description: The Matrix User IDs found with the given parameters. @@ -161,12 +163,14 @@ paths: schema: type: string - in: query - name: fields... + name: fields description: |- One or more custom fields that are passed to the application service 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. diff --git a/data/api/client-server/third_party_lookup.yaml b/data/api/client-server/third_party_lookup.yaml index de1b0b63..797f065f 100644 --- a/data/api/client-server/third_party_lookup.yaml +++ b/data/api/client-server/third_party_lookup.yaml @@ -139,11 +139,13 @@ paths: schema: type: string - in: query - name: fields... + name: fields description: One or more custom fields that are passed to the AS to help identify the user. schema: - type: string + type: object + additionalProperties: + type: string responses: "200": description: The Matrix User IDs found with the given parameters.