From 5bc77cd142bcdc0e635300410a10a2885b35b893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Garc=C3=ADa=20Cota?= Date: Thu, 20 Sep 2018 01:44:22 +0200 Subject: [PATCH] feat(schema) uuid validates on empty fields Check if this is needed --- kong/db/schema/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kong/db/schema/init.lua b/kong/db/schema/init.lua index 495bdaf59b09..cbe6fe0ebf2c 100644 --- a/kong/db/schema/init.lua +++ b/kong/db/schema/init.lua @@ -270,6 +270,9 @@ Schema.validators = { end, uuid = function(value) + if value == "" then + return true + end if #value ~= 36 then return nil end