From 2cc1017dadf931f359a177f91017a1e6be9931d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Thu, 22 Jun 2023 14:41:09 +0200 Subject: [PATCH] Fix schema of custom fields in query for appservice API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kévin Commaille --- data/api/application-service/protocols.yaml | 8 ++++++-- data/api/client-server/third_party_lookup.yaml | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/data/api/application-service/protocols.yaml b/data/api/application-service/protocols.yaml index 59dff5b0..c8ef4033 100644 --- a/data/api/application-service/protocols.yaml +++ b/data/api/application-service/protocols.yaml @@ -101,7 +101,9 @@ paths: 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. @@ -166,7 +168,9 @@ paths: 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..be07e5c3 100644 --- a/data/api/client-server/third_party_lookup.yaml +++ b/data/api/client-server/third_party_lookup.yaml @@ -143,7 +143,9 @@ paths: 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.