Skip to content

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

@hueniverse

Description

@hueniverse

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().

Metadata

Metadata

Assignees

Labels

breaking changesChange that can breaking existing code

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions