Skip to content

Commit 24bd644

Browse files
testowerrichfab
andauthored
Add validation for presence of required files in discovery file (#163)
* Add validation for presence of required files in discovery file * Remove redundant requirement for "name" * Update v1.0/gbfs.json Co-authored-by: Fabien Richard-Allouard <fabien@mobilitydata.org> * Update v1.1/gbfs.json Co-authored-by: Fabien Richard-Allouard <fabien@mobilitydata.org> * Update v2.0/gbfs.json Co-authored-by: Fabien Richard-Allouard <fabien@mobilitydata.org> * Update v2.1/gbfs.json Co-authored-by: Fabien Richard-Allouard <fabien@mobilitydata.org> * Update v2.2/gbfs.json Co-authored-by: Fabien Richard-Allouard <fabien@mobilitydata.org> * Update v2.3/gbfs.json Co-authored-by: Fabien Richard-Allouard <fabien@mobilitydata.org> * Update v3.0/gbfs.json Co-authored-by: Fabien Richard-Allouard <fabien@mobilitydata.org> * Update v3.1-RC/gbfs.json Co-authored-by: Fabien Richard-Allouard <fabien@mobilitydata.org> --------- Co-authored-by: Fabien Richard-Allouard <fabien@mobilitydata.org>
1 parent 334c25c commit 24bd644

File tree

8 files changed

+48
-2
lines changed

8 files changed

+48
-2
lines changed

v1.0/gbfs.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
}
3737
},
3838
"required": ["name", "url"]
39+
},
40+
"minItems": 1,
41+
"contains": {
42+
"properties": {
43+
"name": { "const": "system_information" }
44+
}
3945
}
4046
}
4147
},

v1.1/gbfs.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@
6262
}
6363
},
6464
"required": ["name", "url"]
65+
},
66+
"minItems": 1,
67+
"contains": {
68+
"properties": {
69+
"name": { "const": "system_information" }
70+
}
6571
}
6672
}
6773
},

v2.0/gbfs.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@
6262
}
6363
},
6464
"required": ["name", "url"]
65+
},
66+
"minItems": 1,
67+
"contains": {
68+
"properties": {
69+
"name": { "const": "system_information" }
70+
}
6571
}
6672
}
6773
},

v2.1/gbfs.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@
6464
}
6565
},
6666
"required": ["name", "url"]
67+
},
68+
"minItems": 1,
69+
"contains": {
70+
"properties": {
71+
"name": { "const": "system_information" }
72+
}
6773
}
6874
}
6975
},

v2.2/gbfs.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@
6464
}
6565
},
6666
"required": ["name", "url"]
67+
},
68+
"minItems": 1,
69+
"contains": {
70+
"properties": {
71+
"name": { "const": "system_information" }
72+
}
6773
}
6874
}
6975
},

v2.3/gbfs.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@
6464
}
6565
},
6666
"required": ["name", "url"]
67+
},
68+
"minItems": 1,
69+
"contains": {
70+
"properties": {
71+
"name": { "const": "system_information" }
72+
}
6773
}
6874
}
6975
},

v3.0/gbfs.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@
5353
},
5454
"required": ["name", "url"]
5555
},
56-
"minItems": 1
56+
"minItems": 1,
57+
"contains": {
58+
"properties": {
59+
"name": { "const": "system_information" }
60+
}
61+
}
5762
}
5863
},
5964
"required": ["feeds"]

v3.1-RC/gbfs.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@
5353
},
5454
"required": ["name", "url"]
5555
},
56-
"minItems": 1
56+
"minItems": 1,
57+
"contains": {
58+
"properties": {
59+
"name": { "const": "system_information" }
60+
}
61+
}
5762
}
5863
},
5964
"required": ["feeds"]

0 commit comments

Comments
 (0)