{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "put crawl perf results request",
    "description": "put crawl perf results request",
    "type": "object",
    "properties": {
        "crawlResultsId": {
            "type": "string",
            "minLength": 1
        },
        "spider": {
            "type": "object",
            "properties": {
                "dockerImage": {
                    "type": "string",
                    "minLength": 1
                },
                "name": {
                    "type": "string",
                    "minLength": 1
                },
                "version": {
                    "type": "string",
                    "minLength": 1
                }
            },
            "required": [
                "dockerImage",
                "name",
                "version"
            ],
            "additionalProperties": false
        },
        "crawlArgs": {
            "type": "array",
            "minItems": 0,
            "items": {
                "type": "string",
                "minLength": 1
            },
            "_uniqueItems": false
        },
        "crawlTime": {
            "type": "object",
            "properties": {
                "started": {
                    "type": "string",
                    "minLength": 1
                },
                "durationInMs": {
                    "type": "integer",
                    "minimum": 0
                }
            },
            "required": [
                "started",
                "durationInMs"
            ],
            "additionalProperties": false
        },
        "status": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "integer"
                },
                "message": {
                    "type": "string",
                    "minLength": 1
                }
            },
            "required": [
                "code",
                "message"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "crawlResultsId",
        "spider",
        "crawlArgs",
        "crawlTime",
        "status"
    ],
    "additionalProperties": false
}