From 8be89a51d9ea2b4ef7b34a6c9c689fa13a201288 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Sun, 9 Nov 2025 15:38:30 -0600 Subject: [PATCH] Make StarSystem required, remove StarPos as per discussion --- schemas/scanorganic-README.md | 7 ------- schemas/scanorganic-v1.0.json | 10 ++++------ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/schemas/scanorganic-README.md b/schemas/scanorganic-README.md index f9c2877..64093ff 100644 --- a/schemas/scanorganic-README.md +++ b/schemas/scanorganic-README.md @@ -54,13 +54,6 @@ CarrierJump as appropriate. **You MUST apply a location cross-check, as per [Other data augmentations](../docs/Developers.md#other-data-augmentations).** -#### StarPos -You MUST add a `StarPos` array containing the system co-ordinates from the -last `FSDJump`, `CarrierJump`, or `Location` event. - -**You MUST apply a location cross-check, as per -[Other data augmentations](../docs/Developers.md#other-data-augmentations).** - #### BodyID and BodyName BodyID is already present in the form of the 'Body' key. This should be renamed to BodyID to mirror many other events. diff --git a/schemas/scanorganic-v1.0.json b/schemas/scanorganic-v1.0.json index 5183aae..2b34bbb 100644 --- a/schemas/scanorganic-v1.0.json +++ b/schemas/scanorganic-v1.0.json @@ -33,7 +33,7 @@ "type" : "object", "description" : "Contains all properties from the listed events in the client's journal minus the Localised strings and the properties marked below as 'disallowed'", "additionalProperties" : false, - "required" : [ "timestamp", "event", "ScanType", "Genus", "Species", "SystemAddress", "BodyID"], + "required" : [ "timestamp", "event", "StarSystem", "ScanType", "Genus", "Species", "SystemAddress", "BodyID"], "properties" : { "timestamp": { "type" : "string", @@ -50,11 +50,9 @@ "type" : "boolean", "description" : "Boolean value copied from the Journal LoadGame event, when it is present there." }, - "StarPos": { - "type" : "array", - "items" : { "type": "number" }, - "minItems" : 3, - "maxItems" : 3, + "StarSystem": { + "type" : "string", + "minLength" : 1, "description" : "Must be added by the sender" }, "ScanType": {