extends - sgpinkus/json-schema GitHub Wiki
THIS WIKI IS OBSOLETE. PLEASE SEE THE NEW JSON-SCHEMA-ORG/JSON-SCHEMA-SPEC REPOSITORY.
An instance is valid with regards to this keyword if and only if it is valid against this keyword value's schema or schemas.
The value of this keyword MUST be an object or an array.
If it is an object, then this object MUST be a valid JSON Schema.
If it is an array, then each member of this array MUST be an object, and this object MUST be a valid JSON Schema.
Given this schema:
{
"extends": [
{ "type": "integer" },
{ "divisibleBy": 3 }
]
}
then the following instance is valid:
33
but the following is not:
22
since it is only valid against the first schema.