User:DeadbeefBot/AbuseAnalyzer Schema.json

{   "$schema": "http://json-schema.org/draft-07/schema#", "title": "JsonOutput", "type": "object", "required": [ "runs" ],   "properties": { "runs": { "description": "Report runs.", "type": "array", "items": { "$ref": "#/definitions/Run" }       }    },    "definitions": { "Filter": { "description": "an individual filter.", "type": "object", "required": [ "cases", "id" ],           "properties": { "cases": { "description": "individual regex cases of the filter.", "type": "array", "items": { "type": "string" }               },                "id": { "description": "id of the filter.", "type": "integer", "format": "uint32", "minimum": 0 }           }        },        "LogEntry": { "type": "object", "required": [ "id", "matches" ],           "properties": { "id": { "description": "what was the id of this log entry?", "type": "integer", "format": "uint64", "minimum": 0 },               "matches": { "description": "what filters did this diff trigger?", "type": "array", "items": { "$ref": "#/definitions/Match" }               }            }        },        "Match": { "description": "a log entry hit.", "type": "object", "required": [ "case_index", "filter_index", "is_ccnorm" ],           "properties": { "case_index": { "description": "the specific case that matched this diff", "type": "integer", "format": "uint", "minimum": 0 },               "filter_index": { "description": "a filter rule that this log entry triggered", "type": "integer", "format": "uint", "minimum": 0 },               "is_ccnorm": { "type": "boolean" }           }        },        "Run": { "description": "a bot run.", "type": "object", "required": [ "date", "entries", "filters" ],           "properties": { "date": { "description": "when the report was generated.", "type": "string", "format": "date-time" },               "entries": { "description": "the log entries that this run scanned.\n\nMost recent entries first.", "type": "array", "items": { "$ref": "#/definitions/LogEntry" }               },                "filters": { "description": "overview of the filters analyzed in this run.", "type": "array", "items": { "$ref": "#/definitions/Filter" }               }            }        }    } }