Catur Hidayat Posted on May 1, 2020 validate error using joi #node #express #help #joi Hi all I'm having trouble validating using JOI, please correct my code. where was my mistake Top comments (2) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Collapse Expand George Koniaris George Koniaris George Koniaris Follow Software Engineer. Amateur Photographer. Writing about what I find interesting. Location Athens, Greece Joined Apr 11, 2020 • May 1 '20 Dropdown menu Copy link Hide I think the correct syntax is: return schema.validate(data) Collapse Expand Catur Hidayat Catur Hidayat Catur Hidayat Follow Email catur@windowslive.com Location Bekasi, Indonesia Joined Jul 2, 2017 • May 2 '20 Dropdown menu Copy link Hide i am using joi from hapijs for validattion Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
I think the correct syntax is:
return schema.validate(data)
i am using joi from hapijs for validattion