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

Add the ability to customize multiple status codes based on the validation exception #4017

Merged

Conversation

meyerbaptiste
Copy link
Member

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tickets n/a
License MIT
Doc PR n/a

This PR introduces a new ApiPlatform\Core\Bridge\Symfony\Validator\Exception\ConstraintViolationListAwareExceptionInterface which adds the ability to have a close management of status code on validation exceptions.

@meyerbaptiste meyerbaptiste force-pushed the validation_exception_status_code branch from 4d2f819 to 5aa6b29 Compare February 3, 2021 14:01
@meyerbaptiste meyerbaptiste added this to the 2.7 milestone Feb 8, 2021
@soyuka soyuka merged commit 4b491b6 into api-platform:main Apr 26, 2021
@soyuka
Copy link
Member

soyuka commented Apr 26, 2021

thanks @meyerbaptiste !

soyuka added a commit to soyuka/core that referenced this pull request Apr 26, 2021
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.

3 participants