From 76b48e25d004997b515f879bb9c971538a65821d Mon Sep 17 00:00:00 2001 From: Tom Foster Date: Fri, 14 Feb 2025 12:56:16 +0000 Subject: [PATCH] Specify CNIG pattern for custom fields --- data/api/client-server/profile.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/api/client-server/profile.yaml b/data/api/client-server/profile.yaml index e210a145..842d3484 100644 --- a/data/api/client-server/profile.yaml +++ b/data/api/client-server/profile.yaml @@ -49,6 +49,7 @@ paths: - type: string enum: ["avatar_url", "displayname"] - type: string + pattern: '^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$' description: Must follow the [Common Namespaced Identifier Grammar](/appendices/#common-namespaced-identifier-grammar). requestBody: @@ -148,6 +149,7 @@ paths: - type: string enum: ["avatar_url", "displayname"] - type: string + pattern: '^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$' description: Must follow the [Common Namespaced Identifier Grammar](/appendices/#common-namespaced-identifier-grammar). responses: @@ -215,6 +217,7 @@ paths: - type: string enum: ["avatar_url", "displayname"] - type: string + pattern: '^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$' description: Must follow the [Common Namespaced Identifier Grammar](/appendices/#common-namespaced-identifier-grammar). responses: