-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation base on dynamic type #1012
Comments
I can't test your type because do not have the CacheIdentifierPrefix type. Can you provide me a reproducible repo? |
Hi, |
Still not possible to understand what you want. Is this what you want? If not, hope to provide the exact reproducible code. |
We have two types ( |
Well, in your type, the By the way, if what you want is the class type checking statement represented by The class type checking feature would come with "class transformation" feature, but cannot sure when. |
No I don't need class type checking(When I validate classes itself). I need check if value that I dynamically provided to the function is satisfy corresponding class definition. So it doesn't necessarily have to be instance of those class. But if class, for instance, have field |
I'm retrieving hash maps from Redis in my app. In order to validate value I utilize model map that includes all possible keys and values in Redis. So after retrieving value I want to call
validateEquals
function and pass type that I recieved dynamically in runtime but in this scenario Typia just never return errors even though they do exist. This flow was working fine with class-validatior but now we decided to go with Typia instead but can't implement this part of functionality. I provide simple code snippet that will show the problem:In this case Typia is returning no errors:
{ success: true, errors: [], data: { wrongValue: 1 } }
The text was updated successfully, but these errors were encountered: