{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {
        "digester_details": {
            "type": "object",
            "description": "Details of Digester run on one file",
            "properties": {
                "artifact": {
                    "type": "boolean"
                },
                "path": {
                    "type": "string"
                },
                "ssdeep": {
                    "type": "string"
                },
                "md5": {
                    "type": "string"
                },
                "sha1": {
                    "type": "string"
                },
                "sha256": {
                    "type": "string"
                }
            },
            "required": [
                "path",
                "ssdeep",
                "md5",
                "sha1",
                "sha256"
            ],
            "additionalProperties": false
        }
    },
    "type": "object",
    "description": "Result of Digester worker",
    "properties": {
        "schema": {
            "type": "object",
            "properties": {
                "name": {
                    "type": "string",
                    "description": "Name of the schema",
                    "pattern": "^[a-zA-Z0-9_]+$"
                },
                "version": {
                    "type": "string",
                    "description": "Version of the schema",
                    "pattern": "^[0-9]+-[0-9]+-[0-9]+$"
                },
                "url": {
                    "type": "string",
                    "description": "Full URL of the schema",
                    "format": "uri"
                }
            },
            "required": [
                "name",
                "version"
            ],
            "additionalProperties": false
        },
        "_release": {
            "type": "string",
            "description": "Unique release id in form of \"ecosystem:package:version\""
        },
        "status": {
            "type": "string",
            "enum": [
                "success",
                "error"
            ]
        },
        "details": {
            "type": "array",
            "items": {
                "$ref": "#/definitions/digester_details"
            }
        },
        "summary": {
            "type": "array",
            "items": {
                "type": "string"
            }
        }
    },
    "required": [
        "status",
        "details",
        "summary"
    ],
    "additionalProperties": false,
    "title": "digests-v1-0-0"
}