Add optional FDev IDs to schemas.

This commit is contained in:
Jonathan Harris 2016-01-22 17:25:49 +00:00
parent a925155547
commit 172dfd1913
3 changed files with 57 additions and 3 deletions

View File

@ -38,10 +38,21 @@
"type" : "string", "type" : "string",
"minLength" : 1 "minLength" : 1
}, },
"systemId": {
"type" : "integer",
"description" : "If present should be treated by clients as taking precedence over \"systemName\""
},
"systemAddress": {
"type" : "integer"
},
"stationName": { "stationName": {
"type" : "string", "type" : "string",
"minLength" : 1 "minLength" : 1
}, },
"stationId": {
"type" : "integer",
"description" : "If present should be treated by clients as taking precedence over \"stationName\""
},
"timestamp": { "timestamp": {
"type" : "string", "type" : "string",
"format" : "date-time" "format" : "date-time"
@ -57,8 +68,12 @@
"required" : [ "name", "buyPrice", "supply", "sellPrice", "demand" ], "required" : [ "name", "buyPrice", "supply", "sellPrice", "demand" ],
"properties" : { "properties" : {
"name": { "name": {
"type" :"string", "type" : "string",
"minLength" :1 "minLength" : 1
},
"id": {
"type" : "integer",
"description" : "If present should be treated by clients as taking precedence over \"name\""
}, },
"buyPrice": { "buyPrice": {
"type" :"integer", "type" :"integer",
@ -93,4 +108,4 @@
"enum": [ "Low", "Med", "High" ] "enum": [ "Low", "Med", "High" ]
} }
} }
} }

View File

@ -32,10 +32,21 @@
"type" : "string", "type" : "string",
"minLength" : 1 "minLength" : 1
}, },
"systemId": {
"type" : "integer",
"description" : "If present should be treated by clients as taking precedence over \"systemName\""
},
"systemAddress": {
"type" : "integer"
},
"stationName": { "stationName": {
"type" : "string", "type" : "string",
"minLength" : 1 "minLength" : 1
}, },
"stationId": {
"type" : "integer",
"description" : "If present should be treated by clients as taking precedence over \"stationName\""
},
"timestamp": { "timestamp": {
"type" : "string", "type" : "string",
"format" : "date-time" "format" : "date-time"
@ -49,6 +60,8 @@
{ {
"type" : "object", "type" : "object",
"properties" : { "properties" : {
"id" : { "type": "integer",
"description": "If present should be treated by clients as taking precedence over other fields" },
"category" : { "enum": [ "hardpoint" ] }, "category" : { "enum": [ "hardpoint" ] },
"name" : { "type": "string", "minLength": 1 }, "name" : { "type": "string", "minLength": 1 },
"mount" : { "$ref": "#/definitions/mount" }, "mount" : { "$ref": "#/definitions/mount" },
@ -62,6 +75,8 @@
{ {
"type" : "object", "type" : "object",
"properties" : { "properties" : {
"id" : { "type": "integer",
"description": "If present should be treated by clients as taking precedence over other fields" },
"category" : { "enum": [ "utility" ] }, "category" : { "enum": [ "utility" ] },
"name" : { "type": "string", "minLength": 1 }, "name" : { "type": "string", "minLength": 1 },
"class" : { "$ref": "#/definitions/class" }, "class" : { "$ref": "#/definitions/class" },
@ -73,6 +88,8 @@
{ {
"type" : "object", "type" : "object",
"properties" : { "properties" : {
"id" : { "type": "integer",
"description": "If present should be treated by clients as taking precedence over other fields" },
"category" : { "enum": [ "standard" ] }, "category" : { "enum": [ "standard" ] },
"name" : { "type": "string", "minLength": 1 }, "name" : { "type": "string", "minLength": 1 },
"ship" : { "type": "string", "ship" : { "type": "string",
@ -87,6 +104,8 @@
{ {
"type" : "object", "type" : "object",
"properties" : { "properties" : {
"id" : { "type": "integer",
"description": "If present should be treated by clients as taking precedence over other fields" },
"category" : { "enum": [ "internal" ] }, "category" : { "enum": [ "internal" ] },
"name" : { "type": "string", "minLength": 1 }, "name" : { "type": "string", "minLength": 1 },
"class" : { "$ref": "#/definitions/class" }, "class" : { "$ref": "#/definitions/class" },

View File

@ -38,10 +38,21 @@
"type" : "string", "type" : "string",
"minLength" : 1 "minLength" : 1
}, },
"systemId": {
"type" : "integer",
"description" : "If present should be treated by clients as taking precedence over \"systemName\""
},
"systemAddress": {
"type" : "integer"
},
"stationName": { "stationName": {
"type" : "string", "type" : "string",
"minLength" : 1 "minLength" : 1
}, },
"stationId": {
"type" : "integer",
"description" : "If present should be treated by clients as taking precedence over \"stationName\""
},
"timestamp": { "timestamp": {
"type" : "string", "type" : "string",
"format" : "date-time" "format" : "date-time"
@ -54,6 +65,15 @@
"minLength" : 1, "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" "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
}
} }
} }
} }