From 946e99676fc005817f7c43ced647720035f3c9d0 Mon Sep 17 00:00:00 2001 From: domi41 Date: Sun, 6 Sep 2020 08:39:55 +0200 Subject: [PATCH] feat: add a pattern to UUID as well --- openapi/components/schemas/poll.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openapi/components/schemas/poll.yaml b/openapi/components/schemas/poll.yaml index a981f69..5583138 100644 --- a/openapi/components/schemas/poll.yaml +++ b/openapi/components/schemas/poll.yaml @@ -1,4 +1,5 @@ type: object + properties: id: type: string @@ -8,6 +9,8 @@ properties: uuid: type: string format: uuid + # pattern is defined for implementations that don't understand format: uuid + pattern: '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}' description: > A Universally Unique IDentifier for the poll. (version 4) example: bb788552-727d-470b-827e-d7796248d293