Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Serializer] Allow to include the severity in ConstraintViolationList#35545

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:masterfromdunglas:serializer-payload
May 5, 2020

Conversation

dunglas
Copy link
Member

QA
Branch?master
Bug fix?no
New feature?yes
Deprecations?no
Ticketsn/a
LicenseMIT
Doc PRtodo

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.

@dunglas
Copy link
MemberAuthor

Tests failure aren't related.

@dunglasdunglasforce-pushed theserializer-payload branch 2 times, most recently from3ccd799 to5bf356dCompareApril 21, 2020 10:49
@xabbuhxabbuh modified the milestones:next,5.1May 4, 2020
@fabpot
Copy link
Member

Thank you@dunglas.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@nvdbeeknvdbeeknvdbeek left review comments

@fabpotfabpotfabpot approved these changes

@xabbuhxabbuhxabbuh approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
5.1
Development

Successfully merging this pull request may close these issues.

6 participants
@dunglas@fabpot@nicolas-grekas@nvdbeek@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp