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

Fix #353: Add request validation for new request / response classes #804

Closed
wants to merge 1 commit into from

Conversation

jandusil
Copy link
Contributor

  • Init draft commit
  • Add simple bean validators

- Init draft commit
- Add simple bean validators
@jandusil jandusil self-assigned this Jul 12, 2023
@jandusil jandusil linked an issue Jul 12, 2023 that may be closed by this pull request
@jandusil jandusil requested a review from banterCZ August 3, 2023 14:16
@jandusil jandusil marked this pull request as ready for review August 3, 2023 16:30
Copy link
Member

@petrdvorak petrdvorak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why this is required... The classes you modified are actually already validated (see ActivationCodeRequestValidator and PushRegisterRequestValidator) so the change does not add any value.

Looking at the code, we should also add a handler method for validation exceptions as with the current format, we might miss some opportunities for good error handling. ;-)

cc @romanstrobl

@jandusil jandusil marked this pull request as draft August 30, 2023 22:24
@jandusil
Copy link
Contributor Author

jandusil commented Aug 30, 2023

@petrdvorak Sorry this one is still a draft, the code is very random

@jandusil jandusil closed this May 31, 2024
@banterCZ banterCZ deleted the issues/353-req-validation branch October 25, 2024 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add request validation for new request / response classes
2 participants