mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-17 11:33:42 +01:00
Don't use reference for capability.
This commit is contained in:
parent
7a3b0c0804
commit
9859e20927
|
|
@ -89,9 +89,32 @@ paths:
|
|||
description: Capability to indicate if the user can generate tokens to log further
|
||||
clients into their account.
|
||||
m.profile_fields:
|
||||
$ref: "#/components/schemas/profileFieldsCapability"
|
||||
type: object
|
||||
title: ProfileFieldsCapability
|
||||
description: Capability to indicate if the user can set or modify extended profile fields.
|
||||
If absent, clients should assume custom profile fields are supported.
|
||||
properties:
|
||||
allowed:
|
||||
type: array
|
||||
description: List of allowed custom profile field keys, supporting `glob.*` wildcard format. Takes precedence over disallowed if both are provided.
|
||||
items:
|
||||
type: string
|
||||
example:
|
||||
- "m.example_field"
|
||||
- "org.example/job_title"
|
||||
disallowed:
|
||||
type: array
|
||||
description: List of disallowed custom profile field keys, supporting `glob.*` wildcard format. Ignored if allowed is provided.
|
||||
items:
|
||||
type: string
|
||||
example:
|
||||
- "org.example.secret_field"
|
||||
enabled:
|
||||
type: boolean
|
||||
description: True if the user can set or modify any extended profile fields, false otherwise.
|
||||
example: true
|
||||
required:
|
||||
- enabled
|
||||
examples:
|
||||
response:
|
||||
value: {
|
||||
|
|
@ -150,30 +173,3 @@ components:
|
|||
example: false
|
||||
required:
|
||||
- enabled
|
||||
profileFieldsCapability:
|
||||
type: object
|
||||
title: ProfileFieldsCapability
|
||||
properties:
|
||||
allowed:
|
||||
type: array
|
||||
description: List of allowed custom profile field keys,
|
||||
supporting `glob.*` wildcard format. Takes precedence over disallowed if both are provided.
|
||||
items:
|
||||
type: string
|
||||
example:
|
||||
- "m.example_field"
|
||||
- "org.example.job_title"
|
||||
disallowed:
|
||||
type: array
|
||||
description: List of disallowed custom profile field keys,
|
||||
supporting `glob.*` wildcard format. Ignored if allowed is provided.
|
||||
items:
|
||||
type: string
|
||||
example:
|
||||
- "org.example.secret_field"
|
||||
enabled:
|
||||
type: boolean
|
||||
description: True if the user can set or modify any extended profile fields, false otherwise.
|
||||
example: true
|
||||
required:
|
||||
- enabled
|
||||
|
|
|
|||
Loading…
Reference in a new issue