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 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 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