focus-creative-games / luban

luban是一个强大、易用、优雅、稳定的游戏配置解决方案。luban is a powerful, easy-to-use, elegant and stable game configuration solution.
https://code-philosophy.com/
MIT License
3.4k stars 538 forks source link

fix: 修复多层容器类型嵌套情况下校验器失效的问题 #139

Closed alex4814 closed 5 months ago

alex4814 commented 5 months ago

https://github.com/focus-creative-games/luban/issues/138

pirunxi commented 5 months ago

最好把条件改成 if (is bean or is collection),直接暴力遍历子元素,不太妥当。请再优化一下

alex4814 commented 5 months ago

已修改,不过我没有对 map/set 测试过,理论上应该没什么问题。