Software /
code /
prosody
File
.editorconfig @ 12580:a9dbf657c894 0.12
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 08 Jul 2022 17:32:48 +0200 |
parent | 11706:56feb0cf7052 |
child | 13191:1266efb7101c |
line wrap: on
line source
root = true [*] end_of_line = lf indent_style = tab insert_final_newline = true trim_trailing_whitespace = true [CHANGES] indent_size = 4 indent_style = space [configure] indent_size = 3 indent_style = space [**.xml] indent_size = 2 indent_style = space