-
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
chore: retrieve validation codes #124
Conversation
Reviewer's Guide by SourceryThis pull request implements changes to improve error handling and validation in the application submission and terms acceptance processes. The main focus is on restructuring the error responses to include more detailed validation warnings, which will be useful for the frontend to display appropriate error messages. The changes span across multiple files, including test classes, service classes, exception classes, and OpenAPI specifications. File-Level Changes
Tips
|
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.
Hey @brunopacheco1 - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding more comprehensive JavaDoc comments to explain the changes in error handling, especially in the SubmitApplicationService and AcceptTermsService classes.
- The PR introduces many new imports in some files. Consider if some of these classes can be refactored to reduce coupling and improve separation of concerns.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
Summary by Sourcery
Refactor error handling to use structured ValidationWarning objects instead of plain error messages, update exception classes and OpenAPI specifications accordingly, and adjust tests to validate the new error response structure.
Enhancements:
Tests: