I don’t understand what you need stubs for. You can just table.insert new cases into a table when needed.
local cases = {}
table.insert(cases, function()
-- validation logic in here
return true -- or false
end)
-- or add a function for it that's accessible throughout your addons namespace
_, ns = ...
function ns.RegisterValidationCase(case)
table.insert(cases, case)
end
-- and register a case
ns.RegisterValidationCase(function()
-- validation logic in here
return true -- or false
end)