-
Notifications
You must be signed in to change notification settings - Fork 399
v5: strictProperties
Francis Galiegue edited this page Mar 28, 2014
·
2 revisions
This keyword is intended as an alternative to additionalProperties
.
- the value of this keyword MUST be a JSON boolean;
- when this keyword is present,
additionalProperties
MUST NOT be present.
This keyword applies to the validation of JSON Object instances.
In the same vein as additionalProperties
, properties
and others, this keyword is meant to validate the structure of the JSON Object; it has no influence on the validation of object member values.
As such, the validation rules below do not describe the validation of object member values.
Validation always succeeds.
Validation succeeds if and only if the JSON Object:
- has all properties defined in
properties
, and - has no other properties than the ones defined in
properties
,patternPropertyGroups
andrequired
.