7mind / izumi

Productivity-oriented collection of lightweight fancy stuff for Scala toolchain
https://izumi.7mind.io
BSD 2-Clause "Simplified" License
615 stars 66 forks source link

Bug: ConfigWriter minimizer does not omit nested unrequired nodes. #2058

Closed Caparow closed 8 months ago

pshirshov commented 9 months ago

This is not a bug, it's a fundamental limitation of our codec model. Current codecs cannot provide metadata w/o execution and even during execution they cannot trace all possible code paths because the structures are polymorphic. So, we can't solve this perfectly w/o complete rethinking of our codec model (which is the same as in circe/pureconfig).