aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-10-09 15:38:36 +0200
committerKim Alvefur <zash@zash.se>2022-10-09 15:38:36 +0200
commit060dc120131931876b4bc8a6f312177051ad174b (patch)
tree1d58b9066f266850e99c807fbae665066884e4c0
parentc617f27a547610da1ac328a161f177f482b158a6 (diff)
downloadprosody-060dc120131931876b4bc8a6f312177051ad174b.tar.gz
prosody-060dc120131931876b4bc8a6f312177051ad174b.zip
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
-rw-r--r--util/jsonschema.lua2
1 files changed, 1 insertions, 1 deletions
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