From e3e7d007b204ba4f6f5a1c825cd989f4bc71ae6d Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Thu, 8 Sep 2022 12:08:26 -0600 Subject: [PATCH] eve/schema: bittorrent-dht updates Some values that were previously strings are now parsed down into objects. --- etc/schema.json | 49 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/etc/schema.json b/etc/schema.json index e4b097bd77..cbfae61eb5 100644 --- a/etc/schema.json +++ b/etc/schema.json @@ -354,8 +354,51 @@ "optional": false }, "nodes": { - "type": "string", - "optional": true + "type": "array", + "optional": true, + "items": { + "type": "object", + "items": { + "type": "object", + "additionalProperties": false, + "properties": { + "id": { + "type": "string", + "optional": false + }, + "ip": { + "type": "string", + "optional": false + }, + "port": { + "type": "number", + "optional": false + } + } + } + } + }, + "nodes6": { + "type": "array", + "optional": true, + "items": { + "type": "object", + "additionalProperties": false, + "properties": { + "id": { + "type": "string", + "optional": false + }, + "ip": { + "type": "string", + "optional": false + }, + "port": { + "type": "number", + "optional": false + } + } + } }, "token": { "type": "string", @@ -365,7 +408,7 @@ "type": "array", "optional": true, "items": { - "type": "string" + "type": "object" } } }