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