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.
1 Answer
Reset to default 8As of 2019-09 json-schema specification version, additionalProperties is a validation keyword for objects/documents, and additionalItems is a validation keyword for arrays.