在文档中,ArrayItems
描述为
当此属性值为 jsonSchema 数组且实例值为数组时,实例数组中的每个位置必须符合该数组对应位置的 jsonSchema
并且SingleItems
作为
当此属性值为 jsonSchema 且实例值为数组时,则数组中的所有项都必须根据 jsonSchema 有效。
但我真的不明白attribute value
andinstance
指的是什么。如果我只想知道数组中项的数据类型,我应该使用哪一种?
在文档中,ArrayItems
描述为
当此属性值为 jsonSchema 数组且实例值为数组时,实例数组中的每个位置必须符合该数组对应位置的 jsonSchema
并且SingleItems
作为
当此属性值为 jsonSchema 且实例值为数组时,则数组中的所有项都必须根据 jsonSchema 有效。
但我真的不明白attribute value
andinstance
指的是什么。如果我只想知道数组中项的数据类型,我应该使用哪一种?