![]() |
1
1
类型必须是'string'、'number'、'boolean'、'json'或'ref',就像error say一样。 因此,您需要将type设置为'ref'(对象或数组),并且可以使用自定义函数进行验证。
现在输入是type object和in custom function
如果使用模式类型,只需删除
这是 Runtime (recursive) type-checking for JavaScript. ,请检查文档以了解编写规则。 |