Browse Source

Corrected JSON schema (added required properties)

python3
Kenneth Bruen 3 years ago
parent
commit
d507a227f1
Signed by: kbruen
GPG Key ID: CB77B9FE7F902176
  1. 5
      scraper/trainInfoScrapResultSchema.json

5
scraper/trainInfoScrapResultSchema.json

@ -92,7 +92,8 @@
"type": "string", "type": "string",
"enum": ["passing", "arrival", "departure"] "enum": ["passing", "arrival", "departure"]
} }
} },
"required": ["delay", "station", "state"]
}, },
"stations": { "stations": {
"description": "List of stations the train stops at", "description": "List of stations the train stops at",
@ -127,5 +128,5 @@
} }
} }
}, },
"required": ["route", "stations"] "required": ["route", "stations", "rank", "number", "date", "operator"]
} }
Loading…
Cancel
Save