From e94cb588815986edb82d0f677f2d780c94dfa37f Mon Sep 17 00:00:00 2001 From: Space Admiral Date: Thu, 13 Apr 2023 12:38:29 -0700 Subject: [PATCH] update: add transaction to ship purchase --- models/ShipyardTransaction.json | 7 ++++++- reference/SpaceTraders.json | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/models/ShipyardTransaction.json b/models/ShipyardTransaction.json index 8e9461b..877a911 100644 --- a/models/ShipyardTransaction.json +++ b/models/ShipyardTransaction.json @@ -1,6 +1,10 @@ { "type": "object", "properties": { + "waypointSymbol": { + "type": "string", + "description": "The symbol of the waypoint where the transaction took place." + }, "shipSymbol": { "type": "string", "description": "The symbol of the ship that was purchased." @@ -21,7 +25,8 @@ } }, "required": [ - "symbol", + "waypointSymbol", + "shipSymbol", "price", "agentSymbol", "timestamp" diff --git a/reference/SpaceTraders.json b/reference/SpaceTraders.json index 7443b0a..26f710e 100644 --- a/reference/SpaceTraders.json +++ b/reference/SpaceTraders.json @@ -1101,11 +1101,15 @@ }, "ship": { "$ref": "../models/Ship.json" + }, + "transaction": { + "$ref": "../models/ShipyardTransaction.json" } }, "required": [ "ship", - "agent" + "agent", + "transaction" ], "type": "object" }