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 (#1978)
  • Loading branch information
zecakeh authored Nov 6, 2024
1 parent 6cd7038 commit 909c461
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/1978.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify formats of string types.
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
4 changes: 4 additions & 0 deletions data/string-formats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,7 @@ mx-mxc-uri:
uri:
title: URI
url: https://datatracker.ietf.org/doc/html/rfc3986

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

0 comments on commit 909c461

Please sign in to comment.