{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {
        "pets": {
            "type": "object",
            "properties": {
                "dog": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "minItems": 2,
                    "maxItems": 2
                },
                "cat": {
                    "type": "string"
                }
            },
            "required": [
                "cat",
                "dog"
            ]
        }
    },
    "properties": {
        "pets": {
            "$ref": "#/definitions/pets"
        }
    },
    "required": [
        "pets"
    ]
}