-
Notifications
You must be signed in to change notification settings - Fork 0
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
[RSN-9] - Implemented DTO models on frontend #15
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After a long research and consideration of all possibilites, I think that the best solution will be to use zod - it does not depend on other libraries and is lightweight. This will greatly simplify the verification of data received from the API. Additionally, we will be able to use this library also to verify the data provided by the user (data from forms).
See below example, which shows an easy way to handle date conversion to proper object:
…ng with unit tests
…ng with unit tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apply those changes where its needed.
@raczu if everything is done please merge, checked partially and looks fine |
Description
Implemented models from DTO on backend to frontend with mappers from JSON string and object with unit tests.
Related issue and/or ticket
RSN-9