diff options
Diffstat (limited to 'util/datamapper.lua')
-rw-r--r-- | util/datamapper.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util/datamapper.lua b/util/datamapper.lua index 68c09434..00c75a25 100644 --- a/util/datamapper.lua +++ b/util/datamapper.lua @@ -138,7 +138,10 @@ function parse_object(schema, s) out[prop] = parse_object(propschema, c); end elseif proptype == "array" then - out[prop] = parse_array(propschema, s); + local a = parse_array(propschema, s); + if a and a[1] ~= nil then + out[prop] = a; + end else error("unreachable") end |