]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Minor] Migrate src/plugins/lua/contextal.lua to lua_shape
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 18 Nov 2025 10:01:44 +0000 (10:01 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 18 Nov 2025 10:01:44 +0000 (10:01 +0000)
commitd4516e4a963686c5e64f7c223abffd5c0a8bf1c4
treeabbf3fa2c15641d68946cce1b1b8e086de6c0a00
parent5ea96ee892e902caaa2220faafb470f50ff8c9dc
[Minor] Migrate src/plugins/lua/contextal.lua to lua_shape

Replace tableshape with lua_shape in Contextal plugin.

Changes:
- Uses lua_redis.enrich_schema() which returns lua_shape with mixins
- ts.string, ts.boolean, ts.number → T.string(), T.boolean(), T.number()
- ts.array_of(x) → T.array(x)
- :is_optional() → :optional()
- Added comprehensive documentation to all fields

Schema: config_schema with Redis common fields plus Contextal-specific
settings for API URLs, caching, timeouts, and custom actions.
src/plugins/lua/contextal.lua