{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "create tasks request",
    "description": "create tasks request",
    "type": "object",
    "properties": {
        "docker_image": {
            "type": "string",
            "pattern": "(.+/)?.+:.+"
        },
        "cmd": {
            "type": "array",
            "minItems": 1,
            "items": {
                "type": "string"
            }
        },
        "creds": {
            "type": "object",
            "properties": {
                "email": {
                    "type": "string",
                    "minLength": 1
                },
                "username": {
                    "type": "string",
                    "minLength": 1
                },
                "password": {
                    "type": "string",
                    "minLength": 1
                }
            },
            "required": [
                "email",
                "username",
                "password"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "docker_image",
        "cmd"
    ],
    "additionalProperties": false
}