Hi all
I'm having trouble validating using JOI, please correct my code. where was my mistake
For further actions, you may consider blocking this person and/or reporting abuse
Katarina Stojković -
Sushant Gaurav -
Aditya Mathur -
Barkamol Valiev -
Top comments (2)
I think the correct syntax is:
return schema.validate(data)
i am using joi from hapijs for validattion