File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,3 +30,14 @@ def geography_schema():
3030 return common .check_schema (schema )
3131
3232
33+ def geographies_schema ():
34+ """
35+ Create the schema for the Geographies endpoint.
36+ """
37+ # load schema template and insert definitions from geography
38+ geography = geography_schema ()
39+ schema = common .load_json ("./templates/geography/geographies.json" )
40+ schema ["definitions" ].update (geography ["definitions" ])
41+
42+ return common .check_schema (schema )
43+
Original file line number Diff line number Diff line change 1+ {
2+ "$id" : " https://raw.githubusercontent.com/openmobilityfoundation/mobility-data-specification/main/geography/geographies.json" ,
3+ "$schema" : " http://json-schema.org/draft-06/schema#" ,
4+ "title" : " The MDS Geographies Schema" ,
5+ "type" : " object" ,
6+ "definitions" : {
7+ },
8+ "required" : [
9+ " geographies" ,
10+ " updated" ,
11+ " version"
12+ ],
13+ "properties" : {
14+ "geographies" : {
15+ "$id" : " #/properties/geographies" ,
16+ "type" : " array" ,
17+ "title" : " The array of policy objects in this payload" ,
18+ "items" : {
19+ "$id" : " #/properties/geographies/items" ,
20+ "$ref" : " #/definitions/geography"
21+ }
22+ },
23+ "updated" : {
24+ "$id" : " #/properties/updated" ,
25+ "$ref" : " #/definitions/timestamp" ,
26+ "description" : " The timestamp when geographies was last updated"
27+ },
28+ "version" : {
29+ "$id" : " #/properties/version" ,
30+ "$ref" : " #/definitions/version" ,
31+ "description" : " The version of MDS that the geographies represents"
32+ }
33+ },
34+ "additionalProperties" : false
35+ }
You can’t perform that action at this time.
0 commit comments