aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-03-09 02:38:51 +0100
committerKim Alvefur <zash@zash.se>2021-03-09 02:38:51 +0100
commitae408259256bfcf6a0f2daabc84241a25286ba45 (patch)
tree3a156b38baf3f8a7f6ce99e143b6ae11eb42d3a6
parentda85d37bcb847acf53031811277392afe2a17ed2 (diff)
downloadprosody-ae408259256bfcf6a0f2daabc84241a25286ba45.tar.gz
prosody-ae408259256bfcf6a0f2daabc84241a25286ba45.zip
util.jsonschema: Fix "uniqueItems" prematurely declaring a match
-rw-r--r--teal-src/util/jsonschema.tl1
-rw-r--r--util/jsonschema.lua1
2 files changed, 0 insertions, 2 deletions
diff --git a/teal-src/util/jsonschema.tl b/teal-src/util/jsonschema.tl
index 89a9b724..3aa0b6a3 100644
--- a/teal-src/util/jsonschema.tl
+++ b/teal-src/util/jsonschema.tl
@@ -275,7 +275,6 @@ type_validators.table = function (schema : schema_t, data : any) : boolean
end
values[v] = true
end
- return true
end
local p = 0
diff --git a/util/jsonschema.lua b/util/jsonschema.lua
index 97068c5c..170b3dd8 100644
--- a/util/jsonschema.lua
+++ b/util/jsonschema.lua
@@ -194,7 +194,6 @@ type_validators.table = function(schema, data)
end
values[v] = true
end
- return true
end
local p = 0