-
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-31] - Create validators according to constraints #32
Conversation
…unit tests" This reverts commit b2825e8.
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.
Regex strings and hardcoded numbers can be put as a seperate const value in class itself (will be cleaner that way and easier to do changes).
…unit tests" This reverts commit b2825e8.
Simplify the logic on the controllers' side, custom exceptions and a library for validation were added. The implemented handlers are allow to catch those exceptions and return the corresponding statuses and detailed response. Additionally, mappers have been created to more easily convert entities into the corresponding DTOs, fixed enum conversion when it comes to UserRole and export postgres port on the development environment.
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.
@raczu - please fix conflicts / rebase
Also check comment, other than that lgtm (decide if worth doing, if so - commit and merge, if not - just merge)
Description
Create validators which will validate entities on backend side before putting them into database.
Related issue and/or ticket
RSN-31