Skip to content
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

Add country code validation #615

Merged
merged 2 commits into from Sep 27, 2020
Merged

Add country code validation #615

merged 2 commits into from Sep 27, 2020

Conversation

krhubert
Copy link
Contributor

@krhubert krhubert commented May 28, 2020

Validate country code based on iso3166 standard.
validators:

  • iso3166_1_alpha2
  • iso3166_1_alpha3
  • iso3166_1_alpha_numeric
    alias:
  • country_code

Enhances

Make sure that you've checked the boxes below before you submit PR:

  • Tests exist or have been written that cover this particular change.

Change Details:

add validators:

  • iso3166_1_alpha2
  • iso3166_1_alpha3
  • iso3166_1_alpha_numeric
    add alias:
  • country_code "iso3166_1_alpha2|iso3166_1_alpha3|iso3166_1_alpha_numeric"

@go-playground/admins

krhubert and others added 2 commits May 28, 2020 21:36
Validate country code based on iso3166 standard.
validators:
  - iso3166_1_alpha2
  - iso3166_1_alpha3
  - iso3166_1_alpha_numeric
alias:
  - country_code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants