-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
New Function to Perform Class Transformation #683
Comments
@samchon , Here is the way to do a nested conversion with the package
So the challenge is to find a way to guess the type without decorator and rewrite the |
Will try it but cannot sure 100% success |
This would be very much appreciated - would it be possible for you to suggest the different components needed for this and to tell us where you'd like them to be integrated? That'd make it a lot easier to create a reasonable PR without having to read/understand the entire codebase first. Maybe a short introduction to the workings of the different components (folders) would also do. Thanks! |
@marcesengel Implementation code of Looking at below codes, then you may understand how If you want to implement this feature by yourself, add Additional functions like |
Feature Request
A new function named classTransform that converts a given input into an instance of a specific class.
The function could have the following signature:
This function takes two arguments:
The function should return an instance of the class T with the given input.
This function would be particularly useful for converting raw input data into class instances. This issue is critical as it prevents proper type validation and transformation of the incoming request body, a common requirement in type-safe server-side applications. (see samchon/nestia#431)
Example Usage
Here is an example of how this function could be used:
The text was updated successfully, but these errors were encountered: