mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-23 12:00:29 +03:00
Add optional FDev IDs to schemas.
This commit is contained in:
parent
a925155547
commit
172dfd1913
@ -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" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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" },
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user