diff options
author | Kim Alvefur <zash@zash.se> | 2022-07-08 17:32:48 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-07-08 17:32:48 +0200 |
commit | 89359b70dc0446cdda15da19173f460504bafc3d (patch) | |
tree | ce589d446940d9c5ac2ce5cf9a342c6031a94054 /util/dataforms.lua | |
parent | e700edc50f3bd7f05d45bb4410396178811f3561 (diff) | |
download | prosody-89359b70dc0446cdda15da19173f460504bafc3d.tar.gz prosody-89359b70dc0446cdda15da19173f460504bafc3d.zip |
util.datamapper: Improve handling of schemas with non-obvious "type"
The JSON Schema specification says that schemas are objects or booleans,
and that the 'type' property is optional and can be an array.
This module previously allowed bare type names as schemas and did not
really handle booleans.
It now handles missing 'type' properties and boolean 'true' as a schema.
Objects and arrays are guessed based on the presence of 'properties' or
'items' field.
Diffstat (limited to 'util/dataforms.lua')
0 files changed, 0 insertions, 0 deletions