please help with that i am not sure what is happening im using the following:
JavaScript
x
4
1
"body-parser": "1.19.0",
2
"express": "4.17.1",
3
"joi": "17.1.1"
4
but it is only the joi that im having issues with
Advertisement
Answer
Try schema.validate
instead of Joi.validate
Reference: https://joi.dev/api#example