From 060dc120131931876b4bc8a6f312177051ad174b Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 9 Oct 2022 15:38:36 +0200 Subject: util.jsonschema: Fix Lua 5.2 integer compat math.type() is unavailable before Lua 5.3 so this should use the compat function added at the top --- util/jsonschema.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/jsonschema.lua b/util/jsonschema.lua index 48a3351f..e24fc8be 100644 --- a/util/jsonschema.lua +++ b/util/jsonschema.lua @@ -81,7 +81,7 @@ function complex_validate(schema, data, root) if type(data) == "table" then for i in pairs(data) do - if not (math.type(i) == "integer") then + if not (m_type(i) == "integer") then return false end end -- cgit v1.2.3