From 3f3e199cd4bd3d303d919152a85f6b2ec1b4adf6 Mon Sep 17 00:00:00 2001 From: Jonathan Harris Date: Mon, 7 Jan 2019 22:36:00 +0000 Subject: [PATCH] Add "horizons" boolean property And make "marketId" mandatory --- schemas/commodity-v3.0.json | 8 ++++++-- schemas/outfitting-v2.0.json | 8 ++++++-- schemas/shipyard-v2.0.json | 6 +++++- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/schemas/commodity-v3.0.json b/schemas/commodity-v3.0.json index 9b8971d..f8ea96a 100644 --- a/schemas/commodity-v3.0.json +++ b/schemas/commodity-v3.0.json @@ -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", diff --git a/schemas/outfitting-v2.0.json b/schemas/outfitting-v2.0.json index 8ca5951..414d190 100644 --- a/schemas/outfitting-v2.0.json +++ b/schemas/outfitting-v2.0.json @@ -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", diff --git a/schemas/shipyard-v2.0.json b/schemas/shipyard-v2.0.json index db88555..8f2e05a 100644 --- a/schemas/shipyard-v2.0.json +++ b/schemas/shipyard-v2.0.json @@ -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"