]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Minor] Migrate lualib/lua_selectors/common.lua to lua_shape
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 18 Nov 2025 12:00:58 +0000 (12:00 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 18 Nov 2025 12:00:58 +0000 (12:00 +0000)
commitdb4862661813c745271852f9af4943d901db3685
tree2315ae2f9c9f43ca4094e564db55c27c35672682
parent2bc2a18d49765b577d1f35156335010149196273
[Minor] Migrate lualib/lua_selectors/common.lua to lua_shape

Replace tableshape with lua_shape in selectors common utilities.

Changes:
- ts.one_of { ... } → T.enum({ ... })
- :is_optional() → :optional()
- Added documentation to schema fields

Schema: digest_schema returns array with optional encoding format
and optional hash algorithm for selector digest operations.
lualib/lua_selectors/common.lua