{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {
        "code_metrics_result": {
            "type": "object",
            "description": "Details computed by CodeMetrics worker",
            "properties": {
                "languages": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/languages"
                    }
                }
            },
            "required": [
                "languages"
            ],
            "additionalProperties": false
        },
        "code_metrics_summary": {
            "type": "object",
            "description": "Summary computed by CodeMetrics worker",
            "properties": {
                "blank_lines": {
                    "type": "number"
                },
                "code_lines": {
                    "type": "number"
                },
                "comment_lines": {
                    "type": "number"
                },
                "total_files": {
                    "type": "number"
                },
                "total_lines": {
                    "type": "number"
                }
            },
            "required": [
                "blank_lines",
                "code_lines",
                "comment_lines",
                "total_files",
                "total_lines"
            ],
            "additionalProperties": false
        },
        "languages": {
            "type": "object",
            "description": "Generic language specific statistics",
            "properties": {
                "blank_lines": {
                    "type": "number"
                },
                "code_lines": {
                    "type": "number"
                },
                "comment_lines": {
                    "type": "number"
                },
                "files_count": {
                    "type": "number"
                },
                "language": {
                    "type": "string"
                },
                "metrics": {
                    "type": "object",
                    "additionalProperties": true
                }
            },
            "required": [
                "blank_lines",
                "code_lines",
                "comment_lines",
                "files_count",
                "language"
            ],
            "additionalProperties": false
        }
    },
    "type": "object",
    "description": "Result of CodeMetrics 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": {
            "$ref": "#/definitions/code_metrics_result"
        },
        "summary": {
            "$ref": "#/definitions/code_metrics_summary"
        }
    },
    "required": [
        "status",
        "details",
        "summary"
    ],
    "additionalProperties": false,
    "title": "crypto_algorithms_result-v1-0-0"
}