diff util/jsonschema.lua @ 12759:ec54fe0003d5 0.12

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
author Kim Alvefur <zash@zash.se>
date Sun, 09 Oct 2022 15:38:36 +0200
parents ca6a43fe0231
children ce1a0f9bf25a
line wrap: on
line diff
--- a/util/jsonschema.lua	Sun Oct 09 15:24:30 2022 +0200
+++ b/util/jsonschema.lua	Sun Oct 09 15:38:36 2022 +0200
@@ -81,7 +81,7 @@
 		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