diff options
Diffstat (limited to 'util/jsonschema.lua')
-rw-r--r-- | util/jsonschema.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/jsonschema.lua b/util/jsonschema.lua index 0723a45e..ed8c0ccc 100644 --- a/util/jsonschema.lua +++ b/util/jsonschema.lua @@ -118,8 +118,8 @@ local function validate(schema, data) return false end - if schema.enum ~= nil then - for _, v in ipairs(schema.enum) do + if schema["enum"] ~= nil then + for _, v in ipairs(schema["enum"]) do if v == data then return true end |