{
    "type": "array",
    "items": {
        "anyOf": [
            {
                "$ref": "#/definitions/MyObject"
            },
            {
                "type": "string"
            }
        ]
    },
    "definitions": {
        "MyObject": {
            "type": "object",
            "properties": {
                "array": {
                    "type": "array",
                    "items": {
                        "type": [
                            "string",
                            "number"
                        ]
                    }
                }
            },
            "required": [
                "array"
            ]
        }
    },
    "$schema": "http://json-schema.org/draft-04/schema#"
}