My json schema is long and I don't want to allow additional properties other than what I specify in my schema. In the example below, at the root, I specify "additionalProperties": false. Is it inheritable by other json objects in the schema? If I don't want to allow additional properties for "foo1" and "foo2", do I have to repeat "additionalProperties": false with each occurrence of "properties"? Is there a way to say the root "additionalProperties": false is inheritable by other json objects in the schema?
{
"additionalProperties": false,
"properties": {
"foo1": {
"type": "array",
"items": {
"type": "object",
"properties": {
"fooa": {"type": "string"},
"foob": {"type": "string"},
"fooc": {"type": "string"}
}
}
},
"foo2": {
"type": "array",
"items": {
"type": "object",
"properties": {
"fooe": {"type": "string"},
"foof": {"type": "string"},
"foog": {"type": "string"}
}
}
}
}
}