From 9859e20927e9519a9084729a21fcc23b0eb20aa2 Mon Sep 17 00:00:00 2001 From: Tom Foster Date: Thu, 20 Feb 2025 16:31:27 +0000 Subject: [PATCH] Don't use reference for capability. --- data/api/client-server/capabilities.yaml | 52 +++++++++++------------- 1 file changed, 24 insertions(+), 28 deletions(-) diff --git a/data/api/client-server/capabilities.yaml b/data/api/client-server/capabilities.yaml index 9e4810f1..a19bec1c 100644 --- a/data/api/client-server/capabilities.yaml +++ b/data/api/client-server/capabilities.yaml @@ -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