From 916fe73f35e11346e495819341b171067d4ea111 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Wed, 27 Oct 2021 11:08:16 +0000 Subject: [PATCH 1/2] schemas: codexentry: NearestDestination *can* be an empty string. We had one user with EDMC trying to send: ```python OrderedDict([('$schemaRef', 'https://eddn.edcd.io/schemas/codexentry/1'), ('message', OrderedDict([('timestamp', '2021-10-26T11:37:57Z'), ('event', 'CodexEntry'), ('EntryID', 2420702), ('Name', '$Codex_Ent_Stratum_07_K_Name;'), ('SubCategory', '$Codex_SubCategory_Organic_Structures;'), ('Category', '$Codex_Category_Biology;'), ('Region', '$Codex_RegionName_18;'), ('System', 'Xi Ophiuchi'), ('SystemAddress', 2072061675891), ('NearestDestination', ''), ('Latitude', 79.352364), ('Longitude', 121.434044), ('horizons', True), ('odyssey', True), ('StarPos', [-3.875, 8.15625, 55.875]), ('BodyName', 'Xi Ophiuchi B 5'), ('BodyID', 14)]))]) ``` as the message. The EDDN Gateway then complains: `FAIL: []` --- schemas/codexentry-v1.0.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/schemas/codexentry-v1.0.json b/schemas/codexentry-v1.0.json index 4a4727b..d191060 100644 --- a/schemas/codexentry-v1.0.json +++ b/schemas/codexentry-v1.0.json @@ -92,8 +92,7 @@ "minLength" : 1 }, "NearestDestination": { - "type" : "string", - "minLength" : 1 + "type" : "string" }, "VoucherAmount": { "type" : "integer" From f984ce4c79174be7e993214203cc371ba93495b0 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sun, 26 Sep 2021 13:58:49 +0000 Subject: [PATCH 2/2] schemas: Correct 'id' in navbeaconscan-v1.0.json It still had 'fssdiscoveryscan' in there, presumably from a copying. --- schemas/navbeaconscan-v1.0.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/navbeaconscan-v1.0.json b/schemas/navbeaconscan-v1.0.json index a2cb398..64d55bf 100644 --- a/schemas/navbeaconscan-v1.0.json +++ b/schemas/navbeaconscan-v1.0.json @@ -1,6 +1,6 @@ { "$schema" : "http://json-schema.org/draft-04/schema#", - "id" : "https://eddn.edcd.io/schemas/fssdiscoveryscan/1#", + "id" : "https://eddn.edcd.io/schemas/navbeaconscan/1#", "type" : "object", "additionalProperties" : false, "required": [ "$schemaRef", "header", "message" ],