From d507a227f17114bd0b2efec4ab7757b590945132 Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Mon, 23 Aug 2021 04:01:18 +0300 Subject: [PATCH] Corrected JSON schema (added required properties) --- scraper/trainInfoScrapResultSchema.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scraper/trainInfoScrapResultSchema.json b/scraper/trainInfoScrapResultSchema.json index 7d1c497..d25307d 100644 --- a/scraper/trainInfoScrapResultSchema.json +++ b/scraper/trainInfoScrapResultSchema.json @@ -92,7 +92,8 @@ "type": "string", "enum": ["passing", "arrival", "departure"] } - } + }, + "required": ["delay", "station", "state"] }, "stations": { "description": "List of stations the train stops at", @@ -127,5 +128,5 @@ } } }, - "required": ["route", "stations"] + "required": ["route", "stations", "rank", "number", "date", "operator"] } \ No newline at end of file