DEV Community

loading...

Discussion on: validate error using joi

Collapse
gkoniaris profile image
George Koniaris

I think the correct syntax is:

return schema.validate(data)

Collapse
catur_hida_yat profile image
Catur Meong Author

i am using joi from hapijs for validattion