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