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

Fixed country_code validation to properly handle strings #873

Merged
merged 2 commits into from
Jan 2, 2022

Conversation

uberswe
Copy link
Contributor

@uberswe uberswe commented Jan 1, 2022

Fixes Or Enhances

This PR fixes #860. I have modified existing tests and also added a test for country_code to ensure that my modifications have fixed the issue and improve upon the validation.

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

@go-playground/validator-maintainers

@coveralls
Copy link

coveralls commented Jan 1, 2022

Coverage Status

Coverage increased (+0.01%) to 75.112% when pulling f43aefe on uberswe:country_code into ce34f36 on go-playground:master.

Copy link
Contributor

@deankarn deankarn left a comment

Choose a reason for hiding this comment

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

LGTM!

Thanks for the PR

@deankarn deankarn merged commit 19f8e61 into go-playground:master Jan 2, 2022
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.

country_code alias panics on invalid iso3166_1_alpha2 and iso3166_1_alpha3
3 participants