Software / code / prosody
File
DEPENDS @ 13867:eabd38507c1d 13.0
util.jsonschema: Fix handling of `false` as schema
Schemas can be either a boolean or a table (object) but since it only
checked for truthiness, the case of `false` would be handled
incorrectly.
There seems to be no tests that cover `then` and `else` being `false`,
only a couple that check the `if` keyword.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 30 Mar 2025 17:27:23 +0200 |
| parent | 8454:90962ef41bf3 |
line wrap: on
line source
For full information on our dependencies, version requirements, and where to find them, see https://prosody.im/doc/depends If you have luarocks available on your platform, install the following: - luaexpat - luasocket - luafilesystem - luasec