mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-16 16:34:09 +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
|
description: Capability to indicate if the user can generate tokens to log further
|
||||||
clients into their account.
|
clients into their account.
|
||||||
m.profile_fields:
|
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.
|
description: Capability to indicate if the user can set or modify extended profile fields.
|
||||||
If absent, clients should assume custom profile fields are supported.
|
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:
|
examples:
|
||||||
response:
|
response:
|
||||||
value: {
|
value: {
|
||||||
|
|
@ -150,30 +173,3 @@ components:
|
||||||
example: false
|
example: false
|
||||||
required:
|
required:
|
||||||
- enabled
|
- 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