diff options
author | Kim Alvefur <zash@zash.se> | 2021-03-19 00:26:04 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-03-19 00:26:04 +0100 |
commit | 3c3cdcd0c7a6895b90d03480bbc9fba69b74008f (patch) | |
tree | de1a5aef988221c526c5ee446a31066266618b69 /util/datamapper.lua | |
parent | c1706af956ae403b229f7f37a2ff575ada0074e6 (diff) | |
download | prosody-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.lua | 2 |
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) |