symfony / symfony-docs

The Symfony documentation
https://symfony.com/doc
Other
2.16k stars 5.11k forks source link

[Serializer] Added a ConstraintViolationListNormalizer #9480

Closed javiereguiluz closed 6 years ago

javiereguiluz commented 6 years ago

https://github.com/symfony/symfony/pull/22150

It normalizes ConstraintViolationListInterface instances according to RFC7807.

javiereguiluz commented 6 years ago

We need a volunteer to contribute these docs. Someone expert in the Serializer component: @dunglas, @lyrixx, @Simperfit? Thanks!

lyrixx commented 6 years ago

Should we really document it ? I mean, it's just about doing $this->serializer->serialize($errors);

javiereguiluz commented 6 years ago

I think you are right. In the future we may add some brief mention somewhere if we think it's necessary. Thanks!

dunglas commented 6 years ago

We should at least add it to the list of available normalizers. People using directly the component have no way to discover this feature.

javiereguiluz commented 6 years ago

Let's reopen then. But we'll need a volunteer to do this. Thanks!

javiereguiluz commented 6 years ago

Fixed by #9855.

dunglas commented 6 years ago

Thank you very much @javiereguiluz