Time:07-06
I am using Joi version:17.6.0 but it give me the above error.
This is my code.
The error which I am facing
I am using Insomnia and this is the data which I want to validate.
CodePudding user response:
Don't use new Joi.object() but just Joi.object(), it's not a class.
new Joi.object()
Joi.object()
Page link:https//www.codepudding.com/net/465247.html