Add "horizons" boolean property

And make "marketId" mandatory
This commit is contained in:
Jonathan Harris 2019-01-07 22:36:00 +00:00
parent 7b4abf66a0
commit 3f3e199cd4
3 changed files with 17 additions and 5 deletions

View File

@ -32,7 +32,7 @@
"message": {
"type" : "object",
"additionalProperties" : false,
"required" : [ "systemName", "stationName", "timestamp", "commodities" ],
"required" : [ "systemName", "stationName", "marketId", "timestamp", "commodities" ],
"properties" : {
"systemName": {
"type" : "string",
@ -43,7 +43,11 @@
"minLength" : 1
},
"marketId": {
"type" : "number"
"type" : "number"
},
"horizons": {
"type" : "boolean",
"description" : "Whether the sending Cmdr has a Horizons pass."
},
"timestamp": {
"type" : "string",

View File

@ -32,7 +32,7 @@
"message": {
"type" : "object",
"additionalProperties" : false,
"required" : [ "systemName", "stationName", "timestamp", "modules" ],
"required" : [ "systemName", "stationName", "marketId", "timestamp", "modules" ],
"properties" : {
"systemName": {
"type" : "string",
@ -43,7 +43,11 @@
"minLength" : 1
},
"marketId": {
"type" : "number"
"type" : "number"
},
"horizons": {
"type" : "boolean",
"description" : "Whether the sending Cmdr has a Horizons pass."
},
"timestamp": {
"type" : "string",

View File

@ -32,7 +32,7 @@
"message": {
"type" : "object",
"additionalProperties" : false,
"required" : [ "systemName", "stationName", "timestamp", "ships" ],
"required" : [ "systemName", "stationName", "marketId", "timestamp", "ships" ],
"properties" : {
"systemName": {
"type" : "string",
@ -45,6 +45,10 @@
"marketId": {
"type" : "number"
},
"horizons": {
"type" : "boolean",
"description" : "Whether the sending Cmdr has a Horizons pass."
},
"timestamp": {
"type" : "string",
"format" : "date-time"