From bf7d75b978bfbde3753e4192417b95247da2f539 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Sun, 9 Nov 2025 15:42:18 -0600 Subject: [PATCH] Restore StarPos as per discussion --- schemas/scanorganic-README.md | 7 +++++++ schemas/scanorganic-v1.0.json | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/schemas/scanorganic-README.md b/schemas/scanorganic-README.md index 64093ff..f9c2877 100644 --- a/schemas/scanorganic-README.md +++ b/schemas/scanorganic-README.md @@ -54,6 +54,13 @@ 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 2b34bbb..9e21214 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", "StarSystem", "ScanType", "Genus", "Species", "SystemAddress", "BodyID"], + "required" : [ "timestamp", "event", "StarSystem", "StarPos", "ScanType", "Genus", "Species", "SystemAddress", "BodyID"], "properties" : { "timestamp": { "type" : "string", @@ -55,6 +55,13 @@ "minLength" : 1, "description" : "Must be added by the sender" }, + "StarPos": { + "type" : "array", + "items" : { "type": "number" }, + "minItems" : 3, + "maxItems" : 3, + "description" : "Must be added by the sender" + }, "ScanType": { "enum" : ["Log", "Sample"], "description" : "Scan level of the scan; can be 'Log', 'Sample', or 'Analyse'. 'Analyse' can give bad location data and is excluded."