diff util/jsonschema.lua @ 14186:d975d280baec

Merge 13.0->trunk
author Matthew Wild <mwild1@gmail.com>
date Mon, 25 May 2026 19:01:23 +0100
parents b713da7527d2 94172bbf9074
children
line wrap: on
line diff
--- a/util/jsonschema.lua	Tue May 19 19:27:43 2026 +0100
+++ b/util/jsonschema.lua	Mon May 25 19:01:23 2026 +0100
@@ -121,7 +121,7 @@
 	end
 
 	if type(data) == "number" then
-		if schema.multipleOf and (data == 0 or data % schema.multipleOf ~= 0) then
+		if schema.multipleOf and data ~= 0 and data % schema.multipleOf ~= 0 then
 			table.insert(errs, mkerr(sloc .. "/luaPattern", iloc, "not a multiple"))
 			return false, errs
 		end