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

fix: domain default tld validation #3015

Merged
merged 4 commits into from
Jan 29, 2024

Conversation

fernandollisboa
Copy link

@fernandollisboa fernandollisboa commented Jan 24, 2024

Fixes #3007

Methods Joi.string().domain() and Joi.string().email() are now correctly set to default to tlds: { allow: true }, as documented.

Copy link
Member

@Nargonath Nargonath left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. I have some comments.

lib/types/string.js Outdated Show resolved Hide resolved
lib/types/string.js Outdated Show resolved Hide resolved
@Nargonath Nargonath added the bug Bug or defect label Jan 24, 2024
@fernandollisboa
Copy link
Author

hey @Nargonath, thanks for the review!

i've made some changes based on your suggestions.

@Marsup Marsup changed the base branch from master to v17 January 29, 2024 12:44
@Marsup Marsup changed the base branch from v17 to master January 29, 2024 12:44
lib/types/string.js Outdated Show resolved Hide resolved
@Marsup Marsup added this to the 17.12.1 milestone Jan 29, 2024
@Marsup
Copy link
Collaborator

Marsup commented Jan 29, 2024

Nice catch, I'll backport to v17 myself as master is currently the pending v18.

@Marsup Marsup merged commit 2712034 into hapijs:master Jan 29, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug or defect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Domain validation not checking IANA registry by default
3 participants