2022-10-22 18:05:01 +02:00
|
|
|
{
|
2022-10-28 06:09:27 +02:00
|
|
|
"description": "The details of a delivery contract. Includes the type of good, units needed, and the destination.",
|
2022-10-22 18:05:01 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-11-23 23:45:08 +01:00
|
|
|
"tradeSymbol": {
|
2022-10-22 18:05:01 +02:00
|
|
|
"type": "string",
|
|
|
|
"description": "The symbol of the trade good to deliver.",
|
|
|
|
"minLength": 1
|
|
|
|
},
|
|
|
|
"destinationSymbol": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "The destination where goods need to be delivered.",
|
|
|
|
"minLength": 1
|
|
|
|
},
|
|
|
|
"unitsRequired": {
|
|
|
|
"type": "integer",
|
|
|
|
"description": "The number of units that need to be delivered on this contract."
|
|
|
|
},
|
|
|
|
"unitsFulfilled": {
|
|
|
|
"type": "integer",
|
|
|
|
"description": "The number of units fulfilled on this contract."
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2022-11-23 23:45:08 +01:00
|
|
|
"tradeSymbol",
|
2022-10-22 18:05:01 +02:00
|
|
|
"destinationSymbol",
|
|
|
|
"unitsRequired",
|
|
|
|
"unitsFulfilled"
|
|
|
|
]
|
|
|
|
}
|