fix transaction response on ship install / remove

This commit is contained in:
SpaceAdmiral 2023-06-17 08:47:13 -07:00
parent 7685727af7
commit 15be27fd58
2 changed files with 37 additions and 2 deletions

View File

@ -0,0 +1,35 @@
{
"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 made the transaction."
},
"tradeSymbol": {
"type": "string",
"description": "The symbol of the trade good."
},
"totalPrice": {
"type": "integer",
"description": "The total price of the transaction.",
"minimum": 0
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "The timestamp of the transaction."
}
},
"required": [
"waypointSymbol",
"shipSymbol",
"tradeSymbol",
"totalPrice",
"timestamp"
],
"description": "Result of a transaction for a ship modification, such as installing a mount or a module."
}

View File

@ -3030,7 +3030,7 @@
"$ref": "../models/ShipCargo.json"
},
"transaction": {
"$ref": "../models/ShipyardTransaction.json"
"$ref": "../models/ShipModificationTransaction.json"
}
}
}
@ -3120,7 +3120,7 @@
"$ref": "../models/ShipCargo.json"
},
"transaction": {
"$ref": "../models/ShipyardTransaction.json"
"$ref": "../models/ShipModificationTransaction.json"
}
}
}