aboutsummaryrefslogtreecommitdiffstats
path: root/util/datamapper.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-03-19 00:26:04 +0100
committerKim Alvefur <zash@zash.se>2021-03-19 00:26:04 +0100
commit3c3cdcd0c7a6895b90d03480bbc9fba69b74008f (patch)
treede1a5aef988221c526c5ee446a31066266618b69 /util/datamapper.lua
parentc1706af956ae403b229f7f37a2ff575ada0074e6 (diff)
downloadprosody-3c3cdcd0c7a6895b90d03480bbc9fba69b74008f.tar.gz
prosody-3c3cdcd0c7a6895b90d03480bbc9fba69b74008f.zip
util.datamapper: Deal with type name changes in util.jsonschema
Diffstat (limited to 'util/datamapper.lua')
-rw-r--r--util/datamapper.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/datamapper.lua b/util/datamapper.lua
index d2a6a963..65524279 100644
--- a/util/datamapper.lua
+++ b/util/datamapper.lua
@@ -82,7 +82,7 @@ local parse_array
function parse_object(schema, s)
local out = {}
- if schema.properties then
+ if type(schema) == "table" and schema.properties then
for prop, propschema in pairs(schema.properties) do
local proptype, value_where, name, namespace, prefix, single_attribute, enums = unpack_propschema(propschema, prop, s.attr.xmlns)