From e178b260a85a1c3ede0f0caf7ba096a8f2234b8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Hru=C5=A1ka?= Date: Wed, 25 Sep 2024 10:41:51 +0200 Subject: [PATCH] enable credentials custom data editing --- seacatauth/credentials/schemas.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/seacatauth/credentials/schemas.py b/seacatauth/credentials/schemas.py index 3ae26560..64680f57 100644 --- a/seacatauth/credentials/schemas.py +++ b/seacatauth/credentials/schemas.py @@ -26,14 +26,14 @@ "data": { "type": "object", "description": "Custom data", - # "patternProperties": { - # "^[a-zA-Z][a-zA-Z0-9_-]{0,126}[a-zA-Z0-9]$": {"anyOf": [ - # {"type": "string"}, - # {"type": "number"}, - # {"type": "boolean"}, - # {"type": "null"}, - # ]} - # }, + "patternProperties": { + "^[a-zA-Z][a-zA-Z0-9_-]{0,126}[a-zA-Z0-9]$": {"anyOf": [ + {"type": "string"}, + {"type": "number"}, + {"type": "boolean"}, + {"type": "null"}, + ]} + }, "additionalProperties": False, }, "suspended": {