We're a place where coders share, stay up-to-date and grow their careers.
I think the correct syntax is:
return schema.validate(data)
i am using joi from hapijs for validattion
I think the correct syntax is:
return schema.validate(data)
i am using joi from hapijs for validattion