Skip to content

[Validator] Add CidrValidator to allow validation of CIDR notations #43593

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

Merged
merged 1 commit into from
Oct 25, 2021

Conversation

popsorin
Copy link
Contributor

@popsorin popsorin commented Oct 19, 2021

Q A
Branch? 5.4
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #36526
License MIT
Doc PR symfony/symfony-docs#15974

This PR will add a CIDR Constraint Validator that will check if a string is a valid CIDR notation.

@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has a contribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (see https://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (see https://symfony.com/releases)
  • Features and deprecations must be submitted against the 5.4 branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@popsorin popsorin force-pushed the feature/cidr-notation-constraint branch from dd88623 to cd820ec Compare October 19, 2021 15:36
@popsorin popsorin force-pushed the feature/cidr-notation-constraint branch from cd820ec to 58ccbae Compare October 19, 2021 15:51
@popsorin popsorin force-pushed the feature/cidr-notation-constraint branch 2 times, most recently from d1ec95b to 6b20977 Compare October 20, 2021 13:18
@popsorin popsorin requested review from stof and derrabus October 20, 2021 13:19
@popsorin popsorin force-pushed the feature/cidr-notation-constraint branch 2 times, most recently from 027a59d to 87339a4 Compare October 20, 2021 17:32
Co-authored-by: Calin Bolea <calin.bolea@gmail.com>
@popsorin popsorin force-pushed the feature/cidr-notation-constraint branch from 87339a4 to 488ff61 Compare October 21, 2021 09:28
@popsorin
Copy link
Contributor Author

popsorin commented Oct 22, 2021

Hey, @stof could you please take a look at the changes requested by your code review ? Thanks!

@derrabus
Copy link
Member

Thank you @popsorin.

@derrabus derrabus merged commit 0a41bda into symfony:5.4 Oct 25, 2021
@Adambean
Copy link

Thank you @popsorin, looking forward to trying this out later. :)

nicolas-grekas added a commit that referenced this pull request Oct 25, 2021
This PR was merged into the 4.4 branch.

Discussion
----------

[Validator] Add translations for CIDR constraint

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | N/A
| License       | MIT
| Doc PR        | N/A

This PR backports the translations added in #43593. Additionally, I have added a German translation.

Commits
-------

8903f8f [Validator] Add translations for CIDR constraint
This was referenced Nov 5, 2021
javiereguiluz added a commit to symfony/symfony-docs that referenced this pull request Nov 6, 2021
…psorin)

This PR was merged into the 5.4 branch.

Discussion
----------

 [Validator] Add documentation for the Cidr Validator

Hello everyone!

This is the documentation for the Cidr validator and constraint.PR: symfony/symfony#43593

Please take a look and let me know if I need to change anything!

Commits
-------

16de4a9  [Validator] Add documentation for the CidrValidator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Validator] Constraints\IP: Accept value with a CIDR notation
6 participants