mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-30 06:04:10 +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"
|
example: "@alice:example.com"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
format: mx-user-id
|
||||||
|
pattern: "^@"
|
||||||
- in: path
|
- in: path
|
||||||
name: keyName
|
name: keyName
|
||||||
description: The name of the profile field to set. This MUST be either
|
description: The name of the profile field to set. This MUST be either
|
||||||
|
|
@ -158,6 +160,8 @@ paths:
|
||||||
example: "@alice:example.com"
|
example: "@alice:example.com"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
format: mx-user-id
|
||||||
|
pattern: "^@"
|
||||||
- in: path
|
- in: path
|
||||||
name: keyName
|
name: keyName
|
||||||
description: The name of the profile field to retrieve.
|
description: The name of the profile field to retrieve.
|
||||||
|
|
@ -216,6 +220,8 @@ paths:
|
||||||
example: "@alice:example.com"
|
example: "@alice:example.com"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
format: mx-user-id
|
||||||
|
pattern: "^@"
|
||||||
- in: path
|
- in: path
|
||||||
name: keyName
|
name: keyName
|
||||||
description: The name of the profile field to delete.
|
description: The name of the profile field to delete.
|
||||||
|
|
@ -286,6 +292,8 @@ paths:
|
||||||
example: "@alice:example.com"
|
example: "@alice:example.com"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
format: mx-user-id
|
||||||
|
pattern: "^@"
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: The profile information for this user.
|
description: The profile information for this user.
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,8 @@ paths:
|
||||||
type: string
|
type: string
|
||||||
example: "@foo:bar.com"
|
example: "@foo:bar.com"
|
||||||
description: The user's matrix user ID.
|
description: The user's matrix user ID.
|
||||||
|
format: mx-user-id
|
||||||
|
pattern: "^@"
|
||||||
display_name:
|
display_name:
|
||||||
type: string
|
type: string
|
||||||
example: Foo
|
example: Foo
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue