util/jsonschema.lua
branch0.12
changeset 12763 ec54fe0003d5
parent 12583 ca6a43fe0231
child 12764 ce1a0f9bf25a
equal deleted inserted replaced
12762:7929c0ffbe14 12763:ec54fe0003d5
    79 
    79 
    80 	if schema.type == "array" then
    80 	if schema.type == "array" then
    81 		if type(data) == "table" then
    81 		if type(data) == "table" then
    82 
    82 
    83 			for i in pairs(data) do
    83 			for i in pairs(data) do
    84 				if not (math.type(i) == "integer") then
    84 				if not (m_type(i) == "integer") then
    85 					return false
    85 					return false
    86 				end
    86 				end
    87 			end
    87 			end
    88 		end
    88 		end
    89 	end
    89 	end