From 72700b47d3ced6ea487cb98e886a889ca59ecce2 Mon Sep 17 00:00:00 2001 From: Maximilian Staab Date: Fri, 26 Aug 2022 14:21:25 +0200 Subject: [PATCH] Add new type: Web-Crawler --- schemas/development/webcrawler.schema.json | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 schemas/development/webcrawler.schema.json diff --git a/schemas/development/webcrawler.schema.json b/schemas/development/webcrawler.schema.json new file mode 100644 index 0000000..6eee5f3 --- /dev/null +++ b/schemas/development/webcrawler.schema.json @@ -0,0 +1,39 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://raw.githubusercontent.com/xarf/schema-discussion/master/schemas/development/webcrawler.schema.json", + "title": "XARF WEBCRAWLER", + "description": "A format to report Web-Crawling events.", + "allOf": [ + { + "$ref": "xarf_shared.schema.json#/properties/XarfBase" + }, + { + "type": "object", + "properties": { + "Report": { + "allOf": [ + { + "$ref": "xarf_shared.schema.json#/properties/IpAndUrlBasedReport" + }, + { + "type": "object", + "properties": { + "ReportClass": { + "type": "string", + "enum": ["Activity"] + }, + "ReportType": { + "type": "string", + "enum": ["WebCrawler"] + } + } + }, + { + "$ref": "xarf_shared.schema.json#/properties/CommonProps" + } + ] + } + } + } + ] +}