diff --git a/schemas/commodity-v2.0.json b/schemas/commodity-v2.0.json index 68efc4c..ca28d90 100644 --- a/schemas/commodity-v2.0.json +++ b/schemas/commodity-v2.0.json @@ -38,10 +38,21 @@ "type" : "string", "minLength" : 1 }, + "systemId": { + "type" : "integer", + "description" : "If present should be treated by clients as taking precedence over \"systemName\"" + }, + "systemAddress": { + "type" : "integer" + }, "stationName": { "type" : "string", "minLength" : 1 }, + "stationId": { + "type" : "integer", + "description" : "If present should be treated by clients as taking precedence over \"stationName\"" + }, "timestamp": { "type" : "string", "format" : "date-time" @@ -57,8 +68,12 @@ "required" : [ "name", "buyPrice", "supply", "sellPrice", "demand" ], "properties" : { "name": { - "type" :"string", - "minLength" :1 + "type" : "string", + "minLength" : 1 + }, + "id": { + "type" : "integer", + "description" : "If present should be treated by clients as taking precedence over \"name\"" }, "buyPrice": { "type" :"integer", @@ -93,4 +108,4 @@ "enum": [ "Low", "Med", "High" ] } } -} \ No newline at end of file +} diff --git a/schemas/outfitting-v1.0.json b/schemas/outfitting-v1.0.json index b0cf30b..c226e28 100644 --- a/schemas/outfitting-v1.0.json +++ b/schemas/outfitting-v1.0.json @@ -32,10 +32,21 @@ "type" : "string", "minLength" : 1 }, + "systemId": { + "type" : "integer", + "description" : "If present should be treated by clients as taking precedence over \"systemName\"" + }, + "systemAddress": { + "type" : "integer" + }, "stationName": { "type" : "string", "minLength" : 1 }, + "stationId": { + "type" : "integer", + "description" : "If present should be treated by clients as taking precedence over \"stationName\"" + }, "timestamp": { "type" : "string", "format" : "date-time" @@ -49,6 +60,8 @@ { "type" : "object", "properties" : { + "id" : { "type": "integer", + "description": "If present should be treated by clients as taking precedence over other fields" }, "category" : { "enum": [ "hardpoint" ] }, "name" : { "type": "string", "minLength": 1 }, "mount" : { "$ref": "#/definitions/mount" }, @@ -62,6 +75,8 @@ { "type" : "object", "properties" : { + "id" : { "type": "integer", + "description": "If present should be treated by clients as taking precedence over other fields" }, "category" : { "enum": [ "utility" ] }, "name" : { "type": "string", "minLength": 1 }, "class" : { "$ref": "#/definitions/class" }, @@ -73,6 +88,8 @@ { "type" : "object", "properties" : { + "id" : { "type": "integer", + "description": "If present should be treated by clients as taking precedence over other fields" }, "category" : { "enum": [ "standard" ] }, "name" : { "type": "string", "minLength": 1 }, "ship" : { "type": "string", @@ -87,6 +104,8 @@ { "type" : "object", "properties" : { + "id" : { "type": "integer", + "description": "If present should be treated by clients as taking precedence over other fields" }, "category" : { "enum": [ "internal" ] }, "name" : { "type": "string", "minLength": 1 }, "class" : { "$ref": "#/definitions/class" }, diff --git a/schemas/shipyard-v1.0.json b/schemas/shipyard-v1.0.json index 2ac2996..79b154b 100644 --- a/schemas/shipyard-v1.0.json +++ b/schemas/shipyard-v1.0.json @@ -38,10 +38,21 @@ "type" : "string", "minLength" : 1 }, + "systemId": { + "type" : "integer", + "description" : "If present should be treated by clients as taking precedence over \"systemName\"" + }, + "systemAddress": { + "type" : "integer" + }, "stationName": { "type" : "string", "minLength" : 1 }, + "stationId": { + "type" : "integer", + "description" : "If present should be treated by clients as taking precedence over \"stationName\"" + }, "timestamp": { "type" : "string", "format" : "date-time" @@ -54,6 +65,15 @@ "minLength" : 1, "description" : "Ship name in English as displayed in-game. i.e. one of: Adder, Anaconda, Asp, Asp Scout, Cobra Mk III, Cobra MkIV, DiamondBack Scout, Diamondback Explorer, Eagle, Federal Assault Ship, Federal Corvette, Federal Dropship, Federal Gunship, Fer-de-Lance, Hauler, Imperial Clipper, Imperial Courier, Imperial Cutter, Imperial Eagle, Keelback, Orca, Python, Sidewinder, Type-6 Transporter, Type-7 Transporter, Type-9 Heavy, Viper, Viper MkIV, Vulture" } + }, + "shipIds": { + "type" : "array", + "description" : "If present should be treated by clients as taking precedence over \"ships\"", + "uniqueItems" : true, + "items" : { + "type" : "integer", + "minLength" : 1 + } } } }