{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "pubsub push subscription request data",
    "description": "pubsub push subscription request data",
    "type": "object",
    "oneOf": [
        {
            "properties": {
                "dockerImageName": {
                    "type": "string",
                    "minLength": 1
                },
                "spider": {
                    "type": "string",
                    "minLength": 1
                },
                "args": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                        "type": "string"
                    }
                }
            },
            "required": [
                "dockerImageName",
                "spider",
                "args"
            ],
            "additionalProperties": false
        },
        {
            "properties": {
                "dockerImageName": {
                    "type": "string",
                    "minLength": 1
                },
                "spider": {
                    "type": "string",
                    "minLength": 1
                }
            },
            "required": [
                "dockerImageName",
                "spider"
            ],
            "additionalProperties": false
        }
    ]
}