Skip to content

Commit a03ea34

Browse files
authored
Merge pull request #3236 from lukaslihotzki/format-uri
Use format: uri
2 parents 55249db + 29465f3 commit a03ea34

File tree

12 files changed

+18
-1
lines changed

12 files changed

+18
-1
lines changed

data/api/client-server/administrative_contact.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ paths:
154154
properties:
155155
submit_url:
156156
type: string
157+
format: uri
157158
description: |-
158159
An optional field containing a URL where the client must
159160
submit the validation token to, with identical parameters

data/api/client-server/content-repo.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ paths:
6666
properties:
6767
content_uri:
6868
type: string
69+
format: uri
6970
description: "The [MXC URI](/client-server-api/#matrix-content-mxc-uris) to the uploaded content."
7071
examples:
7172
application/json: {
@@ -360,6 +361,7 @@ paths:
360361
parameters:
361362
- in: query
362363
type: string
364+
format: uri
363365
x-example: "https://matrix.org"
364366
name: url
365367
description: "The URL to get a preview of."
@@ -389,6 +391,7 @@ paths:
389391
The byte-size of the image. Omitted if there is no image attached.
390392
"og:image":
391393
type: string
394+
format: uri
392395
description: |-
393396
An [MXC URI](/client-server-api/#matrix-content-mxc-uris) to the image. Omitted if there is no image.
394397
examples:

data/api/client-server/definitions/public_rooms_response.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ properties:
6868
rules like any other user.
6969
avatar_url:
7070
type: string
71+
format: uri
7172
description: The URL for the room's avatar, if one is set.
7273
join_rule:
7374
type: string
@@ -110,4 +111,4 @@ example: {
110111
"next_batch": "p190q",
111112
"prev_batch": "p1902",
112113
"total_room_count_estimate": 115
113-
}
114+
}

data/api/client-server/definitions/request_token_response.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ properties:
2222
example: "123abc"
2323
submit_url:
2424
type: string
25+
format: uri
2526
description: |-
2627
An optional field containing a URL where the client must submit the
2728
validation token to, with identical parameters to the Identity Service

data/api/client-server/definitions/wellknown/homeserver.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ type: object
1818
properties:
1919
base_url:
2020
type: string
21+
format: uri
2122
description: The base URL for the homeserver for client-server connections.
2223
example: https://matrix.example.com
2324
required:

data/api/client-server/definitions/wellknown/identity_server.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ type: object
1818
properties:
1919
base_url:
2020
type: string
21+
format: uri
2122
description: The base URL for the identity server for client-server connections.
2223
example: https://identity.example.com
2324
required:

data/api/client-server/profile.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ paths:
129129
properties:
130130
avatar_url:
131131
type: string
132+
format: uri
132133
description: The new avatar URL for this user.
133134
responses:
134135
200:
@@ -170,6 +171,7 @@ paths:
170171
properties:
171172
avatar_url:
172173
type: string
174+
format: uri
173175
description: The user's avatar URL if they have set one, otherwise not present.
174176
404:
175177
description: There is no avatar URL for this user or this user does not exist.
@@ -204,6 +206,7 @@ paths:
204206
properties:
205207
avatar_url:
206208
type: string
209+
format: uri
207210
description: The user's avatar URL if they have set one, otherwise not present.
208211
displayname:
209212
type: string

data/api/client-server/pusher.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ paths:
113113
properties:
114114
url:
115115
type: string
116+
format: uri
116117
description: |-
117118
Required if `kind` is `http`. The URL to use to send
118119
notifications to.
@@ -220,6 +221,7 @@ paths:
220221
properties:
221222
url:
222223
type: string
224+
format: uri
223225
description: |-
224226
Required if `kind` is `http`. The URL to use to send
225227
notifications to. MUST be an HTTPS URL with a path of

data/api/client-server/rooms.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ paths:
303303
description: The display name of the user this object is representing.
304304
avatar_url:
305305
type: string
306+
format: uri
306307
description: The mxc avatar url of the user this object is representing.
307308
description: A map from user ID to a RoomMember object.
308309
type: object

data/api/client-server/search.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ paths:
238238
title: Display name
239239
avatar_url:
240240
type: string
241+
format: uri
241242
title: Avatar Url
242243
events_before:
243244
type: array

0 commit comments

Comments
 (0)