]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Preserve doc from optional wrappers in lua_shape
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 25 Dec 2025 15:24:19 +0000 (15:24 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 25 Dec 2025 15:24:19 +0000 (15:24 +0000)
commit38edf25a7d66fec3f493d6beb0824c4e91655b59
tree3f7888d1cf2853402f3fa50e72fbbfff8d158bb7
parentfd75b83d31b93837b0cfeddc096099085a05e17d
[Fix] Preserve doc from optional wrappers in lua_shape

When a schema field uses :optional():doc(), the documentation was lost
during table field normalization. Now propagates doc to inner schema.
lualib/lua_shape/core.lua
lualib/lua_shape/docs.lua