Skip to content

Commit

Permalink
Add Matrix Content URI format
Browse files Browse the repository at this point in the history
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
  • Loading branch information
zecakeh committed May 14, 2024
1 parent 1782a89 commit c404b71
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions data/api/client-server/content-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions data/custom-formats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c404b71

Please sign in to comment.