最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - What is the difference between additionalItems and additionalProperties in JSON Schema? - Stack Overflow

programmeradmin0浏览0评论

In JSON Schema, what is the difference between additionalProperties and additionalItems, as I see examples of both used to specify whether a document containing elements not defined in the schema should be considered valid.

In JSON Schema, what is the difference between additionalProperties and additionalItems, as I see examples of both used to specify whether a document containing elements not defined in the schema should be considered valid.

Share Improve this question edited Dec 27, 2013 at 23:30 Rich Ashworth asked Dec 27, 2013 at 22:40 Rich AshworthRich Ashworth 2,0154 gold badges20 silver badges33 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 8

As of 2019-09 json-schema specification version, additionalProperties is a validation keyword for objects/documents, and additionalItems is a validation keyword for arrays.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论