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] 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 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:masterfromYaFou:form-error-normalizer
Aug 23, 2020
Merged

[Serializer] Adds FormErrorNormalizer#36211

fabpot merged 1 commit intosymfony:masterfromYaFou:form-error-normalizer
Aug 23, 2020

Conversation

@YaFou
Copy link
Contributor

@YaFouYaFou commentedMar 25, 2020
edited
Loading

QA
Branch?master
Bug fix?no
New feature?yes
Deprecations?no
TicketsFix#27428
LicenseMIT
Doc PRsymfony/symfony-docs#13885

Readme

AddsFormErrorNormalizer for AJAX forms (see the suggestion:#27428). It was on theFOSRestBundle and now it is implemented in theSerializer component.

Roadmap

  • Core of the class
  • Output syntax
  • Support of the children forms
  • Doc

maxhelias and Kocal reacted with eyes emoji
@YaFouYaFou marked this pull request as ready for reviewJune 22, 2020 16:25
@YaFouYaFou requested a review fromdunglas as acode ownerJune 22, 2020 16:25
@YaFou
Copy link
ContributorAuthor

I don't know why the test suite does not pass. Anybody has an answer?

Copy link
Member

@fabpotfabpot left a 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.

@YaFou
Copy link
ContributorAuthor

Is there any "standards"/prior art for form validation? That would be better than having our own if possible.

After some research, I did not find RFCs or something like that. However this type of normalizer can follow the specificationRFC 7807 like theConstraintViolationListNormalizer. In my opinion, we shouldn't follow that because forms can't be used in an API. This normalizer can be used in logs for instance. I need some opinions@fabpot

I will work on reviews next week.

Copy link
Member

@fabpotfabpot left a 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+.

@fabpot
Copy link
Member

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.

@YaFou
Copy link
ContributorAuthor

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^5.2.

Copy link
Member

@fabpotfabpot left a 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 :)

@fabpot
Copy link
Member

Thank you@YaFou.

@fabpotfabpot merged commita435dfe intosymfony:masterAug 23, 2020
@YaFouYaFou deleted the form-error-normalizer branchAugust 23, 2020 16:48
wouterj added a commit to symfony/symfony-docs that referenced this pull requestOct 3, 2020
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 containsthe bug (seehttps://symfony.com/releases for the list of maintained branches).If your pull request documents a NEW FEATURE, use the same Symfony branch wherethe feature was introduced (and `master` for features of unreleased versions).-->This pull request is related tosymfony/symfony#36211.Commits-------9ed468d [Serializer] Adds FormErrorNormalizer
@nicolas-grekasnicolas-grekas modified the milestones:next,5.2Oct 5, 2020
@fabpotfabpot mentioned this pull requestOct 5, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@dunglasdunglasAwaiting requested review from dunglas

@xabbuhxabbuhAwaiting requested review from xabbuh

+1 more reviewer

@mohammed-elattarmohammed-elattarmohammed-elattar left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

5.2

Development

Successfully merging this pull request may close these issues.

[Form] Include Form Error Normalizer

6 participants

@YaFou@fabpot@mohammed-elattar@mindaugasvcs@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp