From 43e181a8301ba06053b9641c4ceacf10492fdc11 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 18 Oct 2021 10:33:36 +0000 Subject: [PATCH 1/2] schemas: navroute: Add horizons and odyssey flags --- schemas/navroute-v1.0.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/schemas/navroute-v1.0.json b/schemas/navroute-v1.0.json index 321be80..4a5a83c 100644 --- a/schemas/navroute-v1.0.json +++ b/schemas/navroute-v1.0.json @@ -40,7 +40,15 @@ }, "event": { "enum" : [ "NavRoute" ] - }, + }, + "horizons": { + "type" : "boolean", + "description" : "Whether the sending Cmdr has a Horizons pass." + }, + "odyssey": { + "type" : "boolean", + "description" : "Whether the sending Cmdr has an Odyssey expansion." + }, "Route": { "type" : "array", "description" : "Route generated by in game plotter", From 916fe73f35e11346e495819341b171067d4ea111 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Wed, 27 Oct 2021 11:08:16 +0000 Subject: [PATCH 2/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"