-
Notifications
You must be signed in to change notification settings - Fork 14
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
Introduced StructValidator to unpack validation errors for structs #452
Conversation
Could you please open counterpart PR in |
If you wish to, sure. On it. |
@konradoboza Added one additional change: 84ee00f When working on |
Quality Gate passedIssues Measures |
Description:
This PR introduces
StructWrapperValidator
(which implementsValidatorInterface
from Symfony).It is intended to decorate Symfony's Validator and unpack errors coming from struct assertions. This means it does not require any additional processing on the side of services, as long as the structs are packed using either the provided wrapper abstract, or the wrapper interface.
Before:
After:
For QA:
Documentation: