Joi to validate key based on two different parameters

前端 未结 0 918
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-03 23:51

I am using Joi 13. How to validate a schema which is dependent on two other keys. I have done the following, but getting error: AssertionError [ERR_ASSERTION]: Cannot merge type

相关标签:
回答
  • 消灭零回复
提交回复
热议问题