aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/jsonschema.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/jsonschema.lua b/util/jsonschema.lua
index 23a47bd7..b285feb4 100644
--- a/util/jsonschema.lua
+++ b/util/jsonschema.lua
@@ -57,6 +57,9 @@ end
type_validators.integer = type_validators.number
local function validate(schema, data)
+ if type(schema) == "boolean" then
+ return schema
+ end
if type(schema) == "string" then
return simple_validate(schema, data)
end