update: add transaction to ship purchase

This commit is contained in:
Space Admiral 2023-04-13 12:38:29 -07:00 committed by SpaceAdmiral
parent 281aa49b34
commit e94cb58881
2 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,10 @@
{ {
"type": "object", "type": "object",
"properties": { "properties": {
"waypointSymbol": {
"type": "string",
"description": "The symbol of the waypoint where the transaction took place."
},
"shipSymbol": { "shipSymbol": {
"type": "string", "type": "string",
"description": "The symbol of the ship that was purchased." "description": "The symbol of the ship that was purchased."
@ -21,7 +25,8 @@
} }
}, },
"required": [ "required": [
"symbol", "waypointSymbol",
"shipSymbol",
"price", "price",
"agentSymbol", "agentSymbol",
"timestamp" "timestamp"

View File

@ -1101,11 +1101,15 @@
}, },
"ship": { "ship": {
"$ref": "../models/Ship.json" "$ref": "../models/Ship.json"
},
"transaction": {
"$ref": "../models/ShipyardTransaction.json"
} }
}, },
"required": [ "required": [
"ship", "ship",
"agent" "agent",
"transaction"
], ],
"type": "object" "type": "object"
} }