add exchange property to market

This commit is contained in:
Space Admiral 2022-12-24 14:30:13 -05:00
parent d6ebdd8c14
commit be7f82878e
2 changed files with 19 additions and 23 deletions

View File

@ -10,26 +10,21 @@
"type": "array",
"description": "The list of goods that are exported from this market.",
"items": {
"type": "object",
"properties": {
"symbol": {
"type": "string",
"description": "The symbol of the good."
}
}
"$ref": "./TradeGood.json"
}
},
"imports": {
"type": "array",
"description": "The list of goods that are sought as imports in this market.",
"items": {
"type": "object",
"properties": {
"symbol": {
"type": "string",
"description": "The symbol of the good."
}
"$ref": "./TradeGood.json"
}
},
"exchange": {
"type": "array",
"description": "The list of goods that are bought and sold between agents at this market.",
"items": {
"$ref": "./TradeGood.json"
}
},
"transactions": {
@ -50,6 +45,7 @@
"required": [
"symbol",
"exports",
"imports"
"imports",
"exchange"
]
}

View File

@ -1,6 +1,6 @@
{
"type": "object",
"attributes": {
"properties": {
"symbol": {
"$ref": "./TradeSymbol.json"
},
@ -9,11 +9,11 @@
},
"description": {
"type": "string"
}
},
"required": [
"symbol",
"name",
"description"
]
}
}