Skip to content

Commit 1405184

Browse files
authored
Fix schema of custom fields in query for appservice API (matrix-org#1584)
* Fix schema of custom fields in query for appservice API Signed-off-by: Kévin Commaille <[email protected]> * Add changelog Signed-off-by: Kévin Commaille <[email protected]> * Remove ellipses Signed-off-by: Kévin Commaille <[email protected]> --------- Signed-off-by: Kévin Commaille <[email protected]>
1 parent 67c9f81 commit 1405184

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix JSON schema of custom fields in query.

data/api/application-service/protocols.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,14 @@ paths:
9696
schema:
9797
type: string
9898
- in: query
99-
name: fields...
99+
name: fields
100100
description: |-
101101
One or more custom fields that are passed to the application
102102
service to help identify the user.
103103
schema:
104-
type: string
104+
type: object
105+
additionalProperties:
106+
type: string
105107
responses:
106108
"200":
107109
description: The Matrix User IDs found with the given parameters.
@@ -161,12 +163,14 @@ paths:
161163
schema:
162164
type: string
163165
- in: query
164-
name: fields...
166+
name: fields
165167
description: |-
166168
One or more custom fields that are passed to the application
167169
service to help identify the third-party location.
168170
schema:
169-
type: string
171+
type: object
172+
additionalProperties:
173+
type: string
170174
responses:
171175
"200":
172176
description: At least one portal room was found.

data/api/client-server/third_party_lookup.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,13 @@ paths:
139139
schema:
140140
type: string
141141
- in: query
142-
name: fields...
142+
name: fields
143143
description: One or more custom fields that are passed to the AS to help
144144
identify the user.
145145
schema:
146-
type: string
146+
type: object
147+
additionalProperties:
148+
type: string
147149
responses:
148150
"200":
149151
description: The Matrix User IDs found with the given parameters.

0 commit comments

Comments
 (0)