From 8b08e13b7234eb87498df0a215cc08cd3010f122 Mon Sep 17 00:00:00 2001 From: Marco Realacci Date: Fri, 23 Dec 2022 02:23:29 +0100 Subject: [PATCH] OPENAPI: Add pattern to uid & bump version to 3.1.0 --- doc/api.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api.yaml b/doc/api.yaml index 2a89878..86eceb4 100644 --- a/doc/api.yaml +++ b/doc/api.yaml @@ -1,4 +1,4 @@ -openapi: 3.0.3 +openapi: 3.1.0 info: title: WASAPhoto API description: |- @@ -920,6 +920,7 @@ components: maxLength: 36 description: The user ID. format: uuid + pattern: '^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$' # RFC 4122 example: "1b4e28ba-2fa1-11d2-883f-0016d3cca427" name_object: type: object