From e3f6bc4feb6692d7c8f7d1fc75e64cc5aaee9595 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Mon, 15 Jun 2026 12:42:15 +0100 Subject: [PATCH] Custom format for url-safe unpadded base64 --- data/api/client-server/definitions/encrypted_file.yaml | 1 + data/string-formats.yaml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/data/api/client-server/definitions/encrypted_file.yaml b/data/api/client-server/definitions/encrypted_file.yaml index 87dd7b19..329599c0 100644 --- a/data/api/client-server/definitions/encrypted_file.yaml +++ b/data/api/client-server/definitions/encrypted_file.yaml @@ -45,6 +45,7 @@ properties: example: A256CTR k: type: string + format: mx-urlsafe-unpadded-base64 description: The key, encoded as [URL-safe unpadded Base64](/appendices/#url-safe-unpadded-base64). example: "aWF6-32KGYaC3A_FEUCk1Bt0JA37zP0wrStgmdCaW-0" ext: diff --git a/data/string-formats.yaml b/data/string-formats.yaml index 9d41c402..17c56882 100644 --- a/data/string-formats.yaml +++ b/data/string-formats.yaml @@ -71,6 +71,11 @@ mx-unpadded-base64: url: appendices#unpadded-base64 # no regex +mx-urlsafe-unpadded-base64: + title: URL-safe unpadded Base64 + url: appendices/#url-safe-unpadded-base64 + # no regex + uri: title: URI url: https://datatracker.ietf.org/doc/html/rfc3986