{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "oneOf": [
        {
            "type": "object",
            "properties": {
                "dog": {
                    "type": "string"
                }
            },
            "additionalProperties": false,
            "required": [
                "dog"
            ]
        },
        {
            "type": "object",
            "properties": {
                "cat": {
                    "type": "string"
                }
            },
            "additionalProperties": false,
            "required": [
                "cat"
            ]
        }
    ]
}