{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {
        "github_extracted_details": {
            "type": "object",
            "description": "Details of Github inspection",
            "properties": {
                "forks_count": {
                    "type": "integer"
                },
                "last_year_commits": {
                    "$ref": "#/definitions/github_last_year_commits_details"
                },
                "open_issues_count": {
                    "type": "integer"
                },
                "stargazers_count": {
                    "type": "integer"
                },
                "subscribers_count": {
                    "type": "integer"
                },
                "contributors_count": {
                    "type": "integer"
                },
                "topics": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "license": {
                    "type": "object"
                },
                "updated_on": {
                    "type": "string"
                }
            },
            "required": [
                "updated_on"
            ],
            "additionalProperties": false
        },
        "github_last_year_commits_details": {
            "type": "object",
            "description": "Details of last year Github commits",
            "properties": {
                "sum": {
                    "type": "integer"
                },
                "weekly": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            },
            "required": [
                "sum",
                "weekly"
            ],
            "additionalProperties": false
        }
    },
    "type": "object",
    "description": "Result of Github 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",
                "unknown"
            ]
        },
        "details": {
            "$ref": "#/definitions/github_extracted_details"
        },
        "summary": {
            "type": "array",
            "items": {
                "type": "string"
            }
        }
    },
    "required": [
        "status",
        "details",
        "summary"
    ],
    "additionalProperties": false,
    "title": "github_details-v2-0-2"
}