在JSON Schema 中, additionalProperties
和additionalItems
之间有什么区别,因为我看到了两者的示例,用于指定包含未在架构中定义的元素的文档是否应被视为有效。
从 2019-09 json-schema 规范版本开始, additionalProperties是对象/文档的验证关键字, additionalItems是数组的验证关键字。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.