{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {
        "cve_access": {
            "type": "object",
            "properties": {
                "authentication": {
                    "type": "string",
                    "enum": [
                        "NONE",
                        "SINGLE",
                        "MULTIPLE"
                    ]
                },
                "complexity": {
                    "type": "string",
                    "enum": [
                        "LOW",
                        "MEDIUM",
                        "HIGH"
                    ]
                },
                "vector": {
                    "type": "string",
                    "enum": [
                        "NETWORK",
                        "ADJACENT_NETWORK",
                        "LOCAL"
                    ]
                }
            },
            "required": [
                "authentication",
                "complexity",
                "vector"
            ],
            "additionalProperties": false
        },
        "cve_impact": {
            "type": "object",
            "properties": {
                "availability": {
                    "type": "string",
                    "enum": [
                        "NONE",
                        "PARTIAL",
                        "COMPLETE"
                    ]
                },
                "confidentiality": {
                    "type": "string",
                    "enum": [
                        "NONE",
                        "PARTIAL",
                        "COMPLETE"
                    ]
                },
                "integrity": {
                    "type": "string",
                    "enum": [
                        "NONE",
                        "PARTIAL",
                        "COMPLETE"
                    ]
                }
            },
            "required": [
                "availability",
                "confidentiality",
                "integrity"
            ],
            "additionalProperties": false
        },
        "cvecheck_details": {
            "type": "object",
            "description": "Detail of one CVE",
            "properties": {
                "access": {
                    "$ref": "#/definitions/cve_access"
                },
                "impact": {
                    "$ref": "#/definitions/cve_impact"
                },
                "cvss": {
                    "type": "number"
                },
                "summary": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "references": {
                    "type": "array",
                    "items": {
                        "type": "string",
                        "format": "uri"
                    }
                },
                "cwe": {
                    "type": "string"
                }
            },
            "required": [
                "access",
                "impact",
                "cvss",
                "summary",
                "id",
                "references"
            ],
            "additionalProperties": false
        }
    },
    "type": "object",
    "description": "CVEcheck worker results",
    "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/cvecheck_details"
            }
        },
        "summary": {
            "type": "array",
            "items": {
                "type": "string"
            }
        }
    },
    "required": [
        "status",
        "details",
        "summary"
    ],
    "additionalProperties": false,
    "title": "cvecheck_results-v2-0-0"
}