{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {
        "cryptoalgo_detail": {
            "type": "object",
            "properties": {
                "crypto": {
                    "type": "string"
                },
                "file": {
                    "type": "string"
                },
                "matched_lines": {
                    "type": "number"
                },
                "matchpercent": {
                    "type": "number"
                },
                "matchtype": {
                    "type": "string",
                    "enum": [
                        "content",
                        "filename"
                    ]
                },
                "sample_file": {
                    "type": "string"
                },
                "samples_lines": {
                    "type": "number"
                }
            },
            "required": [
                "crypto",
                "file",
                "matchtype"
            ],
            "additionalProperties": false
        },
        "cryptoalgo_record": {
            "type": "object",
            "properties": {
                "count": {
                    "type": "number"
                },
                "name": {
                    "type": "string"
                }
            },
            "required": [
                "count",
                "name"
            ],
            "additionalProperties": false
        },
        "cryptocheck_summary": {
            "type": "object",
            "properties": {
                "content": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/cryptoalgo_record"
                    }
                },
                "filename": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/cryptoalgo_record"
                    }
                }
            },
            "required": [
                "content",
                "filename"
            ],
            "additionalProperties": false
        }
    },
    "type": "object",
    "description": "Result of OSCryptoChecker 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/cryptoalgo_detail"
            }
        },
        "summary": {
            "$ref": "#/definitions/cryptocheck_summary"
        }
    },
    "required": [
        "status",
        "details",
        "summary"
    ],
    "additionalProperties": false,
    "title": "crypto_algorithms_result-v1-0-0"
}