]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Minor] Migrate rules/controller/neural.lua to lua_shape
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 18 Nov 2025 10:13:45 +0000 (10:13 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 18 Nov 2025 10:13:45 +0000 (10:13 +0000)
commit6318480f6cc37780e6ca85b34840dfc68103cea4
tree2ff82335ade16535d2063d5a439976397fa7c2f9
parent29c49f69ff25b5bb2f4c500e7d368148c3dc7280
[Minor] Migrate rules/controller/neural.lua to lua_shape

Replace tableshape with lua_shape in neural controller.

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

Schema: learn_request_schema for neural network training requests
with nested arrays for ham and spam training vectors.
rules/controller/neural.lua