mirror of
https://github.com/EDCD/EDDN.git
synced 2025-06-11 12:52:08 +03:00
By popular request, add optional supply/demand properties; clarify what
the sell and buy prices are; give timestamp a format restriction.
This commit is contained in:
parent
2074e3435f
commit
cee1900e88
@ -54,6 +54,7 @@
|
|||||||
"buyPrice": {
|
"buyPrice": {
|
||||||
"id": "#buyPrice",
|
"id": "#buyPrice",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
|
"description": "Price to buy from the market",
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"stationStock": {
|
"stationStock": {
|
||||||
@ -61,9 +62,13 @@
|
|||||||
"type": "integer",
|
"type": "integer",
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
|
"supplyLevel": {
|
||||||
|
"$ref": "#/definitions/levelType"
|
||||||
|
},
|
||||||
"sellPrice": {
|
"sellPrice": {
|
||||||
"id": "#sellPrice",
|
"id": "#sellPrice",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
|
"description": "Price to sell to the market",
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"demand": {
|
"demand": {
|
||||||
@ -71,9 +76,13 @@
|
|||||||
"type": "integer",
|
"type": "integer",
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
|
"demandLevel": {
|
||||||
|
"$ref": "#/definitions/levelType"
|
||||||
|
},
|
||||||
"timestamp": {
|
"timestamp": {
|
||||||
"id": "#timestamp",
|
"id": "#timestamp",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
"format": "date-time",
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -93,5 +102,10 @@
|
|||||||
"$schemaRef",
|
"$schemaRef",
|
||||||
"header",
|
"header",
|
||||||
"message"
|
"message"
|
||||||
]
|
],
|
||||||
|
"definitions" : {
|
||||||
|
"levelType" : {
|
||||||
|
"enum": ["Low", "Med", "High"]
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user