Skip to content

Commit

Permalink
Clarify formats of string types for the `GET /.well-known/matrix/supp…
Browse files Browse the repository at this point in the history
…ort` endpoint

Signed-off-by: Kévin Commaille <[email protected]>
  • Loading branch information
zecakeh committed Oct 15, 2024
1 parent 69d7dbf commit cae56bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions data/api/client-server/support.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ paths:
properties:
matrix_id:
type: string
format: mx-user-id
pattern: "^@"
description: |-
A [Matrix User ID](/appendices/#user-identifiers)
representing the administrator.
Expand All @@ -66,6 +68,7 @@ paths:
required.
email_address:
type: string
format: email
description: |-
An email address to reach the administrator.
Expand Down Expand Up @@ -95,6 +98,7 @@ paths:
}
support_page:
type: string
format: uri
description: |-
The URL of a page to give users help specific to the
homeserver, like extra login/registration steps.
Expand Down
5 changes: 4 additions & 1 deletion data/custom-formats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,7 @@ mx-mxc-uri:
uri:
title: URI
url: http://tools.ietf.org/html/rfc3986
# no regex

email:
title: Email Address
url: https://datatracker.ietf.org/doc/html/rfc5321#section-4.1.2

0 comments on commit cae56bc

Please sign in to comment.