Skip to content

[Validator] Add alpha3 option to country constraint #35116

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
Jan 31, 2020

Conversation

maxperrimond
Copy link
Contributor

@maxperrimond maxperrimond commented Dec 27, 2019

Q A
Branch? master
Bug fix? no
New feature? yes
Deprecations? no
Tickets
License MIT
Doc PR symfony/symfony-docs#12857

A following of #33791 and #32988 to add alpha3 option also to Country constraint in the validator component.

@xabbuh
Copy link
Member

xabbuh commented Jan 1, 2020

Adding this makes sense to me. We did something similar for the CountryType and LanguageType in the Form component in #33791.

@xabbuh
Copy link
Member

xabbuh commented Jan 1, 2020

So in addition we should probably also think about adding the same option to the Language constraint.

@maxperrimond maxperrimond force-pushed the country-alpha3-constraint branch from 97f8d00 to c70a24f Compare January 6, 2020 01:30
Copy link
Contributor

@ro0NL ro0NL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i agree Language should have the same option 👍

@fabpot
Copy link
Member

fabpot commented Jan 30, 2020

@maxperrimond Do you have time to finish this PR?

@maxperrimond maxperrimond force-pushed the country-alpha3-constraint branch from c70a24f to 2703ce3 Compare January 31, 2020 04:05
@maxperrimond
Copy link
Contributor Author

@fabpot Thank you to remind me about this PR. I push some changes

@fabpot fabpot force-pushed the country-alpha3-constraint branch from 2703ce3 to d6f34a5 Compare January 31, 2020 08:29
@fabpot
Copy link
Member

fabpot commented Jan 31, 2020

Thank you @maxperrimond.

@fabpot fabpot closed this in 1bb485b Jan 31, 2020
@fabpot fabpot merged commit d6f34a5 into symfony:master Jan 31, 2020
wouterj added a commit to symfony/symfony-docs that referenced this pull request Feb 9, 2020
…(maxperrimond)

This PR was merged into the master branch.

Discussion
----------

[Validator] added alpha3 option to country constraint

<!--

If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/roadmap 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).

-->

Documentation part of symfony/symfony#35116

Commits
-------

912a217 [Validator] added alpha3 option to country constraint
fabpot added a commit that referenced this pull request Feb 24, 2020
…xabbuh)

This PR was merged into the 5.1-dev branch.

Discussion
----------

[Validator] add alpha3 option to Language constraint

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix #35116 (comment)
| License       | MIT
| Doc PR        |

Commits
-------

ce73b98 add alpha3 option to Language constraint
symfony-splitter pushed a commit to symfony/validator that referenced this pull request Feb 24, 2020
…xabbuh)

This PR was merged into the 5.1-dev branch.

Discussion
----------

[Validator] add alpha3 option to Language constraint

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix symfony/symfony#35116 (comment)
| License       | MIT
| Doc PR        |

Commits
-------

ce73b98e2c add alpha3 option to Language constraint
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.1 May 4, 2020
@fabpot fabpot mentioned this pull request May 5, 2020
@ogizanagi
Copy link
Contributor

It might have been discussed somewhere before, but wouldn't a type = "ISO3166-1-alpha2" | "ISO3166-1-alpha3" make more sense here? To be future-proof if ISO3166-1-numeric (or any other type?) can land as well in core?

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.

8 participants