]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Minor] Migrate rules/controller/maps.lua to lua_shape
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 18 Nov 2025 09:22:35 +0000 (09:22 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 18 Nov 2025 09:22:35 +0000 (09:22 +0000)
commit86cc5913a998c2a3e2091dff40ea3f913709c5de
treed500847b584b4ee14579acd43f99abf6b093616f
parent9b3430c5d08a5f717327674a4f915b3e08c2b4d2
[Minor] Migrate rules/controller/maps.lua to lua_shape

Replace tableshape with lua_shape in controller maps plugin.

Changes:
- ts.shape { ... } → T.table({ ... })
- ts.array_of(x) → T.array(x)
- :is_optional() → :optional()
- Added documentation to all fields and schema

Schema: query_json_schema for validating map query requests
with optional maps filter and report_misses flag.
rules/controller/maps.lua