Skip to content
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

Feature request / question: Using typia to serialize / deserialize dates #979

Open
samirotiv opened this issue Feb 25, 2024 · 1 comment
Assignees
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@samirotiv
Copy link

Feature Request

Thanks for your suggestion. Feel free to just state your idea. Writing the issue, it would better to filling the below items:

  • A description of the problem you're trying to solve.
  • An overview of the suggested solution.
  • Examples of how the suggestion would work in various places.
    • Code examples showing the expected behavior.

Hi @samchon , thank you for the fantastic work! Here are is one common problem: NestJS APIs often receive date fields in the request body, which may be optional (nullable). These need to be converted into instances of Date before they can be saved. There is a lot of repetitive code for this.

Instead of this repetitive code, if there is a field of type Date or any other class, is it possible to get Typia to automatically parse this into an instance of Date?

Maybe this is already possible, but I am not seeing it. In that case sorry for the unnecessary issue, request if you could suggest your best way of doing it.

@samchon samchon self-assigned this Feb 26, 2024
@samchon samchon added duplicate This issue or pull request already exists enhancement New feature or request labels Feb 26, 2024
@samchon
Copy link
Owner

samchon commented Feb 26, 2024

Automatic transformation feature is oftenly issued subject.

I'm planning to develop it, but sorry for cannot sure when.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants