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
Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.
Ahmend Riss -
Yaryna Kobryn -
Vitali Sorenko -
Shawn knight -
Top comments (2)
I think the correct syntax is:
return schema.validate(data)
i am using joi from hapijs for validattion