]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Minor] Migrate src/plugins/lua/neural.lua to lua_shape
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 18 Nov 2025 10:25:33 +0000 (10:25 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 18 Nov 2025 10:25:33 +0000 (10:25 +0000)
commit47f9cee7737d736ca32f5199ddb9df71a1bacc88
tree7bf6dbc33c8955bc7e3ed7503e24341f1eb639a1
parent88c90fdc9d06ba41c9fd447d41e84f407d6c7653
[Minor] Migrate src/plugins/lua/neural.lua to lua_shape

Replace tableshape with lua_shape in neural plugin.

Changes:
- ts.shape { ... } → T.table({ ... })
- ts.string, ts.number → T.string(), T.number()
- ts.array_of(x) → T.array(x)
- :is_optional() → :optional()
- Added comprehensive documentation to all fields

Schema: redis_profile_schema for neural network profiles stored in
Redis, including digest, symbols, version, and optional distance.
src/plugins/lua/neural.lua