-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Serializer] Adds FormErrorNormalizer #36211
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
Conversation
src/Symfony/Component/Serializer/Tests/Normalizer/FormErrorNormalizerTest.php
Outdated
Show resolved
Hide resolved
I don't know why the test suite does not pass. Anybody has an answer? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any "standards"/prior art for form validation? That would be better than having our own if possible.
src/Symfony/Component/Serializer/Normalizer/FormErrorNormalizer.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Serializer/Normalizer/FormErrorNormalizer.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Serializer/Normalizer/FormErrorNormalizer.php
Outdated
Show resolved
Hide resolved
After some research, I did not find RFCs or something like that. However this type of normalizer can follow the specification RFC 7807 like the I will work on reviews next week. |
src/Symfony/Component/Serializer/Normalizer/FormErrorNormalizer.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Serializer/Normalizer/FormErrorNormalizer.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Serializer/Normalizer/FormErrorNormalizer.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/Resources/config/serializer.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should probably update the FrameworkBundle composer constraint to require Form 5.2+.
src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php
Outdated
Show resolved
Hide resolved
Let's wait for the tests... I think they will fail as you haven't not changed deps on FramewokrBundle as I mentioned in my previous review. |
@fabpot, the tests passes: the Form Component constraint in the Framework Bundle was already at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, symfony/form is already set to 5.2 :)
Thank you @YaFou. |
This PR was merged into the master branch. Discussion ---------- [Serializer] Adds FormErrorNormalizer <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> This pull request is related to symfony/symfony#36211. Commits ------- 9ed468d [Serializer] Adds FormErrorNormalizer
Readme
Adds
FormErrorNormalizer
for AJAX forms (see the suggestion: #27428). It was on the FOSRestBundle and now it is implemented in theSerializer
component.Roadmap