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

Remove root.validate() and root.describe() #1941

Closed
hueniverse opened this issue Jun 27, 2019 · 0 comments
Closed

Remove root.validate() and root.describe() #1941

hueniverse opened this issue Jun 27, 2019 · 0 comments
Assignees
Labels
breaking changes Change that can breaking existing code
Milestone

Comments

@hueniverse
Copy link
Contributor

The methods are only useful when compile() is not called explicitly which is the wrong way to use joi. Schema compilation is costly and should be done explicitly and once. If you have joi schema types, you can just call schema.validate().

@hueniverse hueniverse added the breaking changes Change that can breaking existing code label Jun 27, 2019
@hueniverse hueniverse added this to the 16.0.0 milestone Jun 27, 2019
@hueniverse hueniverse self-assigned this Jun 27, 2019
hueniverse added a commit that referenced this issue Jun 27, 2019
@hueniverse hueniverse added the v16 label Aug 11, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Feb 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking changes Change that can breaking existing code
Projects
None yet
Development

No branches or pull requests

1 participant