You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This idea cannot be accomplished, because number of cases for the greedy validation is infinite.
Your example case seems simple and easy, but if the type is extended to complicated types like union cases with deep nested object and array types, no way to implement it. About the truncation, only typia.misc.prune() like function, which performing the truncation based on the current value is satisfyinig the target type, can be come true.
#1211
Following up from there. It would be nice if we had greedy validation for arrays.
For instance, I have an array with the following entries:
However the type is:
Some function to make that:
The text was updated successfully, but these errors were encountered: