{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "IntersectionType",
    "description": "",
    "type": "object",
    "properties": {
        "foobar": {
            "allOf": [
                {
                    "type": "object",
                    "properties": {
                        "foo": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "foo"
                    ]
                },
                {
                    "type": "object",
                    "properties": {
                        "bar": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "bar"
                    ]
                }
            ]
        }
    },
    "additionalProperties": false,
    "required": [
        "foobar"
    ]
}