Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #35545 [Serializer] Allow to include the severity in Constrai…
…ntViolationList (dunglas) This PR was squashed before being merged into the 5.1-dev branch. Discussion ---------- [Serializer] Allow to include the severity in ConstraintViolationList | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | n/a | License | MIT | Doc PR | todo The Validator component allow to attach severity and other data to a violation: https://symfony.com/doc/current/validation/severity.html This feature allow to include all or some fields of this payload in serialized errors. This feature is already supported in API Platform (https://api-platform.com/docs/core/validation/#error-levels-and-payload-serialization). Including this in Symfony will allow us to migrate from our own RFC7807 normalizer to the Symfony one. Usage: see the test. Commits ------- be855a2 [Serializer] Allow to include the severity in ConstraintViolationList
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters