implement EDDN shipyard parser
This commit is contained in:
24
utils/src/test/resources/emdn/ship_v1.json
Normal file
24
utils/src/test/resources/emdn/ship_v1.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"header": {
|
||||
"softwareVersion": "2.1.6.1",
|
||||
"gatewayTimestamp": "2016-10-05T13:53:33.930428Z",
|
||||
"softwareName": "E:D Market Connector [Mac OS]",
|
||||
"uploaderID": "Marek Ce'ex"
|
||||
},
|
||||
"$schemaRef": "http://schemas.elite-markets.net/eddn/shipyard/1",
|
||||
"message": {
|
||||
"systemName": "Venegana",
|
||||
"ships": [
|
||||
"Sidewinder",
|
||||
"Eagle",
|
||||
"Asp",
|
||||
"Asp Scout",
|
||||
"Adder",
|
||||
"Anaconda",
|
||||
"Type-7 Transporter",
|
||||
"Federal Gunship"
|
||||
],
|
||||
"stationName": "Shull Ring",
|
||||
"timestamp": "2016-10-05T13:53:25Z"
|
||||
}
|
||||
}
|
||||
21
utils/src/test/resources/emdn/ship_v2.json
Normal file
21
utils/src/test/resources/emdn/ship_v2.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"header": {
|
||||
"softwareVersion": "2.1.7.2",
|
||||
"gatewayTimestamp": "2016-10-05T13:16:12.490637Z",
|
||||
"softwareName": "E:D Market Connector [Windows]",
|
||||
"uploaderID": "Amadeus Sheperd"
|
||||
},
|
||||
"$schemaRef": "http://schemas.elite-markets.net/eddn/shipyard/2",
|
||||
"message": {
|
||||
"systemName": "Sothis",
|
||||
"ships": [
|
||||
"Adder",
|
||||
"Eagle",
|
||||
"Hauler",
|
||||
"SideWinder",
|
||||
"Type7"
|
||||
],
|
||||
"stationName": "Newholm Station",
|
||||
"timestamp": "2016-10-05T13:15:51Z"
|
||||
}
|
||||
}
|
||||
62
utils/src/test/resources/emdn/shipyard-v1.0.json
Normal file
62
utils/src/test/resources/emdn/shipyard-v1.0.json
Normal file
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"$schema" : "http://json-schema.org/draft-04/schema#",
|
||||
"id" : "http://schemas.elite-markets.net/eddn/shipyard/1#",
|
||||
"type" : "object",
|
||||
"additionalProperties" : false,
|
||||
"required" : [ "$schemaRef", "header", "message" ],
|
||||
"properties" : {
|
||||
"$schemaRef": {
|
||||
"type" : "string"
|
||||
},
|
||||
"header": {
|
||||
"type" : "object",
|
||||
"additionalProperties" : true,
|
||||
"required" : [ "uploaderID", "softwareName", "softwareVersion" ],
|
||||
"properties" : {
|
||||
"uploaderID": {
|
||||
"type" : "string"
|
||||
},
|
||||
"softwareName": {
|
||||
"type" : "string"
|
||||
},
|
||||
"softwareVersion": {
|
||||
"type" : "string"
|
||||
},
|
||||
"gatewayTimestamp": {
|
||||
"type" : "string",
|
||||
"format" : "date-time",
|
||||
"description" : "Timestamp upon receipt at the gateway. If present, this property will be overwritten by the gateway; submitters are not intended to populate this property."
|
||||
}
|
||||
}
|
||||
},
|
||||
"message": {
|
||||
"type" : "object",
|
||||
|
||||
"additionalProperties" : false,
|
||||
"required" : [ "systemName", "stationName", "timestamp", "ships" ],
|
||||
"properties" : {
|
||||
"systemName": {
|
||||
"type" : "string",
|
||||
"minLength" : 1
|
||||
},
|
||||
"stationName": {
|
||||
"type" : "string",
|
||||
"minLength" : 1
|
||||
},
|
||||
"timestamp": {
|
||||
"type" : "string",
|
||||
"format" : "date-time"
|
||||
},
|
||||
"ships": {
|
||||
"type" : "array",
|
||||
"uniqueItems" : true,
|
||||
"items" : {
|
||||
"type" : "string",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
62
utils/src/test/resources/emdn/shipyard-v2.0.json
Normal file
62
utils/src/test/resources/emdn/shipyard-v2.0.json
Normal file
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"$schema" : "http://json-schema.org/draft-04/schema#",
|
||||
"id" : "http://schemas.elite-markets.net/eddn/shipyard/2#",
|
||||
"type" : "object",
|
||||
"additionalProperties" : false,
|
||||
"required" : [ "$schemaRef", "header", "message" ],
|
||||
"properties" : {
|
||||
"$schemaRef": {
|
||||
"type" : "string"
|
||||
},
|
||||
"header": {
|
||||
"type" : "object",
|
||||
"additionalProperties" : true,
|
||||
"required" : [ "uploaderID", "softwareName", "softwareVersion" ],
|
||||
"properties" : {
|
||||
"uploaderID": {
|
||||
"type" : "string"
|
||||
},
|
||||
"softwareName": {
|
||||
"type" : "string"
|
||||
},
|
||||
"softwareVersion": {
|
||||
"type" : "string"
|
||||
},
|
||||
"gatewayTimestamp": {
|
||||
"type" : "string",
|
||||
"format" : "date-time",
|
||||
"description" : "Timestamp upon receipt at the gateway. If present, this property will be overwritten by the gateway; submitters are not intended to populate this property."
|
||||
}
|
||||
}
|
||||
},
|
||||
"message": {
|
||||
"type" : "object",
|
||||
"additionalProperties" : false,
|
||||
"required" : [ "systemName", "stationName", "timestamp", "ships" ],
|
||||
"properties" : {
|
||||
"systemName": {
|
||||
"type" : "string",
|
||||
"minLength" : 1
|
||||
},
|
||||
"stationName": {
|
||||
"type" : "string",
|
||||
"minLength" : 1
|
||||
},
|
||||
"timestamp": {
|
||||
"type" : "string",
|
||||
"format" : "date-time"
|
||||
},
|
||||
"ships": {
|
||||
"type" : "array",
|
||||
"minItems" : 1,
|
||||
"uniqueItems" : true,
|
||||
"items" : {
|
||||
"type" : "string",
|
||||
"minLength" : 1,
|
||||
"description" : "Ship symbolic name. i.e. one of: SideWinder, Adder, Anaconda, Asp, Asp_Scout CobraMkIII, CobraMkIV, Cutter, DiamondBack, DiamondBackXL, Eagle, Empire_Courier, Empire_Eagle, Empire_Trader, Federation_Corvette, Federation_Dropship, Federation_Dropship_MkII, Federation_Gunship, FerDeLance, Hauler, Independant_Trader, Orca, Python, Type6, Type7, Type9, Viper, Viper_MkIV, Vulture"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user