Conditional Yup schema validation with array of objects

后端 未结 0 1306
清歌不尽
清歌不尽 2021-02-05 02:38

I would like to use different schemas for an array of objects based on a value.

items: [{
  name: "a"
   ...
},
{
  name: "b"
  ...
}]



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