{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Untagged", "anyOf": [ { "type": "object", "required": [ "foo" ], "properties": { "foo": { "type": "boolean" } } }, { "type": "boolean" }, { "type": "array", "items": [ { "type": "boolean" }, { "type": "integer", "format": "int32" } ], "maxItems": 2, "minItems": 2 } ] }