Clarify formats of string types for the GET /.well-known/matrix/support endpoint

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2024-10-15 12:23:37 +02:00
parent 69d7dbf703
commit cae56bc786
No known key found for this signature in database
GPG key ID: 0C971D9DBC9D678D
2 changed files with 8 additions and 1 deletions

View file

@ -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.
@ -66,6 +68,7 @@ paths:
required.
email_address:
type: string
format: email
description: |-
An email address to reach the administrator.
@ -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.

View file

@ -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