samchon / typia

Super-fast/easy runtime validators and serializers via transformation
https://typia.io/
MIT License
4.59k stars 157 forks source link

Support user-supplied additional type validation #550

Closed TheYarin closed 1 year ago

TheYarin commented 1 year ago

Feature Request

samchon commented 1 year ago

Good idea, I will try your solution

samchon commented 1 year ago

I tried your solution, but it was hard for me to syncing the custom validation logic, because typia constructs validation logic in the compilation level, and can't sure which file (validation code vs custom validation logic insertion code) would be compiled earlier.

Therefore, studying your suggestion, I've decided how to support the custom validation function.

I'll write the new solution as a new article. Thanks for suggestion.