Link to the specification: http://json-schema.org/latest/json-schema-validation.html#anchor64
Section 5.4.4.2 states:
Successful validation of an object instance against these three keywords depends on the value of "additionalProperties": if its value is boolean true or a schema, validation succeeds; ...
Section 5.4.4.3 states:
If "additionalProperties" is absent, it may be considered present with an empty schema as a value.
好的,如果没有"additionalProperties",它将被视为存在一个空模式.如果它是一个模式(任何类型),那么不管其他考虑因素如何,对象都会成功验证.
But this is contradicted by the assertion in section 5.4.4.5, "Example", that the given instance fails to validate against the given schema (which doesn't specify anything for "additionalProperties").
Can someone explain where and in what way I'm misinterpreting the specification?