JSONSchema - Required property dependent on parent property
问题 I would like to apply an additional "required" property in an array sub schema based on the presence of a property in the root schema. I have my schema set like this: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "required":[ "isParentDependency", "subArray" ], "properties": { "isParentDependency": { "$id": "#/properties/isParentDependency", "type": "boolean" }, "subArray": { "$id": "#/properties/subArray", "type": "array", "items": { "$id": "#/properties