Skip to content

fix: domain default tld validation#3015

Merged
Marsup merged 4 commits intohapijs:masterfrom
fernandollisboa:fix/domain-default-validation
Jan 29, 2024
Merged

fix: domain default tld validation#3015
Marsup merged 4 commits intohapijs:masterfrom
fernandollisboa:fix/domain-default-validation

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.

@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
@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
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