Add Matrix Content URI format

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2024-05-14 14:53:04 +02:00
parent 1782a89b15
commit c404b71f37
No known key found for this signature in database
GPG key ID: 0C971D9DBC9D678D
2 changed files with 9 additions and 2 deletions

View file

@ -42,7 +42,8 @@ paths:
properties:
content_uri:
type: string
format: uri
format: mx-mxc-uri
pattern: "^mxc:\\/\\/"
description: The [`mxc://` URI](/client-server-api/#matrix-content-mxc-uris) to
the uploaded content.
examples:
@ -185,7 +186,8 @@ paths:
properties:
content_uri:
type: string
format: uri
format: mx-mxc-uri
pattern: "^mxc:\\/\\/"
description: |-
The [`mxc://` URI](/client-server-api/#matrix-content-mxc-uris) at
which the content will be available, once it is uploaded.

View file

@ -42,6 +42,11 @@ mx-server-name:
url: /appendices#server-name
# no regex
mx-mxc-uri:
title: Matrix Content URI
url: /client-server-api#matrix-content-mxc-uris
# regex: "^mxc:\\/\\/"
uri:
title: URI
url: http://tools.ietf.org/html/rfc3986