Custom format for url-safe unpadded base64

This commit is contained in:
Richard van der Hoff 2026-06-15 12:42:15 +01:00
parent 538671ded1
commit e3f6bc4feb
2 changed files with 6 additions and 0 deletions

View file

@ -45,6 +45,7 @@ properties:
example: A256CTR example: A256CTR
k: k:
type: string type: string
format: mx-urlsafe-unpadded-base64
description: The key, encoded as [URL-safe unpadded Base64](/appendices/#url-safe-unpadded-base64). description: The key, encoded as [URL-safe unpadded Base64](/appendices/#url-safe-unpadded-base64).
example: "aWF6-32KGYaC3A_FEUCk1Bt0JA37zP0wrStgmdCaW-0" example: "aWF6-32KGYaC3A_FEUCk1Bt0JA37zP0wrStgmdCaW-0"
ext: ext:

View file

@ -71,6 +71,11 @@ mx-unpadded-base64:
url: appendices#unpadded-base64 url: appendices#unpadded-base64
# no regex # no regex
mx-urlsafe-unpadded-base64:
title: URL-safe unpadded Base64
url: appendices/#url-safe-unpadded-base64
# no regex
uri: uri:
title: URI title: URI
url: https://datatracker.ietf.org/doc/html/rfc3986 url: https://datatracker.ietf.org/doc/html/rfc3986