From c4d4bbc40f6063b345ee3147bb60ed99cffc77e3 Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Fri, 9 Dec 2022 12:11:41 +0000 Subject: [PATCH] client_ids are required to be ULIDs --- docs/config.schema.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/config.schema.json b/docs/config.schema.json index 3c09a00df..68b22f3da 100644 --- a/docs/config.schema.json +++ b/docs/config.schema.json @@ -387,7 +387,7 @@ "properties": { "client_id": { "description": "The client ID", - "type": "string" + "$ref": "#/definitions/ULID" }, "redirect_uris": { "description": "List of allowed redirect URIs", @@ -1732,6 +1732,13 @@ ] } ] + }, + "ULID": { + "description": "A ULID as per https://github.com/ulid/spec", + "type": "string", + "pattern": "^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$", + "minLength": 26, + "maxLength": 26 } } } \ No newline at end of file