]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Fix lua_shape registry to recursively resolve nested schemas 5754/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 19 Nov 2025 16:20:57 +0000 (16:20 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 19 Nov 2025 16:20:57 +0000 (16:20 +0000)
commitfafd9704a43fa8c43c16fb72a121a0a03677c48d
treec2b0d689e6f489a1d968d92ff53be2a8065fb225
parent5715ac6fc4b23f259974f081a8a7b563d43631ba
[Fix] Fix lua_shape registry to recursively resolve nested schemas

The registry's resolve_schema function was not recursively resolving
field schemas and opts.extra in table nodes, causing mixins in nested
one_of variants to never be expanded. This broke external_relay plugin
validation where rule variants with mixins were reported as having
unknown fields.

Now recursively resolves all nested schemas including field schemas,
opts.extra, and ensures mixins are properly expanded throughout the
entire schema tree.
lualib/lua_shape/registry.lua
src/plugins/lua/external_relay.lua