mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-30 22:24:09 +02:00
Clarify string formats in user data endpoints
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
c68e687a8c
commit
7c3e5148ac
|
|
@ -46,6 +46,8 @@ paths:
|
|||
example: "@alice:example.com"
|
||||
schema:
|
||||
type: string
|
||||
format: mx-user-id
|
||||
pattern: "^@"
|
||||
- in: path
|
||||
name: keyName
|
||||
description: The name of the profile field to set. This MUST be either
|
||||
|
|
@ -158,6 +160,8 @@ paths:
|
|||
example: "@alice:example.com"
|
||||
schema:
|
||||
type: string
|
||||
format: mx-user-id
|
||||
pattern: "^@"
|
||||
- in: path
|
||||
name: keyName
|
||||
description: The name of the profile field to retrieve.
|
||||
|
|
@ -216,6 +220,8 @@ paths:
|
|||
example: "@alice:example.com"
|
||||
schema:
|
||||
type: string
|
||||
format: mx-user-id
|
||||
pattern: "^@"
|
||||
- in: path
|
||||
name: keyName
|
||||
description: The name of the profile field to delete.
|
||||
|
|
@ -286,6 +292,8 @@ paths:
|
|||
example: "@alice:example.com"
|
||||
schema:
|
||||
type: string
|
||||
format: mx-user-id
|
||||
pattern: "^@"
|
||||
responses:
|
||||
"200":
|
||||
description: The profile information for this user.
|
||||
|
|
|
|||
|
|
@ -82,6 +82,8 @@ paths:
|
|||
type: string
|
||||
example: "@foo:bar.com"
|
||||
description: The user's matrix user ID.
|
||||
format: mx-user-id
|
||||
pattern: "^@"
|
||||
display_name:
|
||||
type: string
|
||||
example: Foo
|
||||
|
|
|
|||
Loading…
Reference in a new issue