OpenAPI: use uri format

In avatar_url, pusher url, wellknown base_url, getUrlPreview, and submit_url.

Signed-off-by: Lukas Lihotzki <lukas@lihotzki.de>
This commit is contained in:
Lukas Lihotzki 2021-08-09 08:54:34 +02:00 committed by Richard van der Hoff
parent cdcc24af11
commit 91b232df48
12 changed files with 18 additions and 1 deletions

View file

@ -66,6 +66,7 @@ paths:
properties:
content_uri:
type: string
format: uri
description: "The [MXC URI](/client-server-api/#matrix-content-mxc-uris) to the uploaded content."
examples:
application/json: {
@ -360,6 +361,7 @@ paths:
parameters:
- in: query
type: string
format: uri
x-example: "https://matrix.org"
name: url
description: "The URL to get a preview of."
@ -389,6 +391,7 @@ paths:
The byte-size of the image. Omitted if there is no image attached.
"og:image":
type: string
format: uri
description: |-
An [MXC URI](/client-server-api/#matrix-content-mxc-uris) to the image. Omitted if there is no image.
examples: