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