added extra journal events and navroute

This commit is contained in:
Gareth Harper 2021-09-22 14:30:16 +00:00
parent a0dfed222e
commit 40a79e5f9c
2 changed files with 77 additions and 2 deletions

View File

@ -40,7 +40,7 @@
"format" : "date-time"
},
"event" : {
"enum" : [ "Docked", "FSDJump", "Scan", "Location", "SAASignalsFound", "CarrierJump", "CodexEntry" ]
"enum" : [ "Docked", "FSDJump", "Scan", "Location", "SAASignalsFound", "CarrierJump", "CodexEntry", "ScanBaryCentre", "FSSDiscoveryScan", "NavBeaconScan" ]
},
"horizons": {
"type" : "boolean",
@ -102,7 +102,7 @@
"_Localised$" : { "$ref" : "#/definitions/disallowed" },
"^(Materials|StationEconomies|Signals)$" : {
"type" : "array",
"description" : "Present in Scan, Docked and SAASignalsFound messages",
"description" : "Present in Scan, ScanBaryCentre, Docked and SAASignalsFound messages",
"items" : {
"type" : "object",
"patternProperties" : {

View File

@ -0,0 +1,75 @@
{
"$schema" : "http://json-schema.org/draft-04/schema#",
"id" : "https://eddn.edcd.io/schemas/navroute/3#",
"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" : [ "timestamp", "event", "Route" ],
"properties" : {
"timestamp": {
"type" : "string",
"format" : "date-time"
},
"event": {
"enum" : [ "Route" ]
},
"Route": {
"type" : "array",
"description" : "Route generated by in game plotter",
"items" : {
"type" : "object",
"additionalProperties" : false,
"required" : [ "StarSystem", "SystemAddress", "StarPos", "StarClass" ],
"properties" : {
"StarSystem": {
"type" : "string",
"minLength" : 1
},
"StarPos": {
"type" : "array",
"items" : { "type": "number" },
"minItems" : 3,
"maxItems" : 3
},
"SystemAddress": {
"type" : "integer"
},
"StarClass": {
"type" : "string",
"minLength" : 1
}
}
}
}
}
}
}
}