Kim Alvefur <zash@zash.se> [Sun, 26 Mar 2023 16:45:23 +0200] rev 12995
mod_admin_shell: Simplify user creation when no role given
Idea here is to prevent a user from being created with the default role
if a different role was given, but that dance wouldn't be needed if no
role is provided.
Kim Alvefur <zash@zash.se> [Sun, 26 Mar 2023 16:07:34 +0200] rev 12994
util.jsonschema: Reorder type definition by specification, section
Also some comment headers and missing properties
Kim Alvefur <zash@zash.se> [Sun, 26 Mar 2023 15:20:07 +0200] rev 12993
util.jsonschema: Implement 'dependentSchemas'
If this object key exists then this schema must validate against the
current object. Seems useful.
Kim Alvefur <zash@zash.se> [Sun, 26 Mar 2023 15:19:14 +0200] rev 12992
util.jsonschema: Implement 'dependentRequired'
If this field exists, then these fields must also exist.
Kim Alvefur <zash@zash.se> [Sun, 26 Mar 2023 13:13:31 +0200] rev 12991
util.roles: Implement a serialization preparation metamethod
Should be able to roundtrip trough serialization. Also nice for debug
and logging purposes where you might want more details than what the
__tostring method provides.
Kim Alvefur <zash@zash.se> [Sun, 26 Mar 2023 13:07:20 +0200] rev 12990
util.set: Add a serialization preparation metamethod
Enables util.serialization to turn Sets into a representation that can be
deserialized with an environment trick, i.e. `set{"a","b"}`. Also useful
for debug purposes.
Kim Alvefur <zash@zash.se> [Sun, 26 Mar 2023 00:49:25 +0100] rev 12989
util.format: Update tests for serialization changes
Kim Alvefur <zash@zash.se> [Sun, 26 Mar 2023 00:33:20 +0100] rev 12988
util.format: Restore "freeze" serialization behavior in logging
This was implied with the "debug" preset and does nice things like turn
util.set objects into "set{a,b,c}" instead of the quite verbose thing
you get otherwise.
Kim Alvefur <zash@zash.se> [Sun, 26 Mar 2023 00:18:05 +0100] rev 12987
util.format: Tweak serialization of %q formatted entries
Improves serialization of function references especially, the built-in
default handling of that in util.serialization is not the most
informative. Now, along with the function metatable from util.startup,
the actual function can be found by filename and line number.
Kim Alvefur <zash@zash.se> [Sun, 26 Mar 2023 00:11:42 +0100] rev 12986
util.startup: Tweak function string representation
Mostly in order to avoid triggering the XML syntax highlighting in the
console logger.