tlivings / enjoi

Converts a JSON schema to a Joi schema.
Apache License 2.0
282 stars 57 forks source link

Fix usage of @hapi/joi #84

Closed JoeScho closed 4 years ago

JoeScho commented 4 years ago

Use schema.validate instead of Joi.validate

This fixes the issue when using enjoi:

TypeError: Joi.validate is not a function
at validate (<...my_path>\node_modules\enjoi\index.js:18:33)