aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src
diff options
context:
space:
mode:
Diffstat (limited to 'teal-src')
-rw-r--r--teal-src/util/jsonschema.tl4
1 files changed, 2 insertions, 2 deletions
diff --git a/teal-src/util/jsonschema.tl b/teal-src/util/jsonschema.tl
index 9600fee4..3df17477 100644
--- a/teal-src/util/jsonschema.tl
+++ b/teal-src/util/jsonschema.tl
@@ -200,8 +200,8 @@ local function validate(schema : schema_t | type_e | boolean, data : any) : bool
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