From 916fe73f35e11346e495819341b171067d4ea111 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Wed, 27 Oct 2021 11:08:16 +0000 Subject: [PATCH] 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"