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