Skip to content

Replace joi with validate#4115

Merged
cjihrig merged 1 commit intomasterfrom
validate
Aug 10, 2020
Merged

Replace joi with validate#4115
cjihrig merged 1 commit intomasterfrom
validate

Conversation

@hueniverse
Copy link
Copy Markdown
Contributor

This moves hapi to use the @hapi/validate modules instead of @hapi/joi which is moving outside of the hapi org. Since joi was only used internally for API input validation, this is not a breaking change. However, this fixes a bug that was overlooked in v19 where rules are used with schemas and were still being compiled by the internal joi module instead of the registered validator.

@hueniverse hueniverse added bug Bug or defect dependency Update module dependency labels Jul 16, 2020
Copy link
Copy Markdown
Contributor

@cjihrig cjihrig left a comment

Choose a reason for hiding this comment

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

LGTM pending the CI run.

@hueniverse hueniverse added this to the 20.0.0 milestone Jul 16, 2020
@hueniverse
Copy link
Copy Markdown
Contributor Author

Please wait to merge until v19.2.0 is released.

@cjihrig cjihrig mentioned this pull request Aug 10, 2020
@cjihrig cjihrig merged commit f46f864 into master Aug 10, 2020
@cjihrig cjihrig deleted the validate branch August 10, 2020 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bug or defect dependency Update module dependency

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants