diff options
author | Kim Alvefur <zash@zash.se> | 2022-10-09 15:38:36 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-10-09 15:38:36 +0200 |
commit | 060dc120131931876b4bc8a6f312177051ad174b (patch) | |
tree | 1d58b9066f266850e99c807fbae665066884e4c0 | |
parent | c617f27a547610da1ac328a161f177f482b158a6 (diff) | |
download | prosody-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.lua | 2 |
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 |