Skip to content

Commit

Permalink
Squashed 'gbfs-validator/versions/schemas/' changes from ef0d9a6..22b…
Browse files Browse the repository at this point in the history
…058d

22b058d fix: incorrect spec for "languages" property in system_information.json (MobilityData#90)
e9d891b Refer to later versions in gbfs_versions.json (MobilityData#87)
fbd3ced Add v3.0 to v3.0-RC schemas (MobilityData#88)

git-subtree-dir: gbfs-validator/versions/schemas
git-subtree-split: 22b058dc4a358baf451e006cde74775075929b3d
  • Loading branch information
tdelmas committed Jun 28, 2023
1 parent cd98f80 commit 1074a38
Show file tree
Hide file tree
Showing 17 changed files with 80 additions and 19 deletions.
8 changes: 7 additions & 1 deletion v1.1/gbfs_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@
"type": "string",
"enum": [
"1.0",
"1.1"
"1.1",
"2.0",
"2.1",
"2.2",
"2.3",
"3.0-RC",
"3.0"
]
},
"url": {
Expand Down
7 changes: 6 additions & 1 deletion v2.0/gbfs_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@
"enum": [
"1.0",
"1.1",
"2.0"
"2.0",
"2.1",
"2.2",
"2.3",
"3.0-RC",
"3.0"
]
},
"url": {
Expand Down
6 changes: 5 additions & 1 deletion v2.1/gbfs_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@
"1.0",
"1.1",
"2.0",
"2.1"
"2.1",
"2.2",
"2.3",
"3.0-RC",
"3.0"
]
},
"url": {
Expand Down
5 changes: 4 additions & 1 deletion v2.2/gbfs_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@
"1.1",
"2.0",
"2.1",
"2.2"
"2.2",
"2.3",
"3.0-RC",
"3.0"
]
},
"url": {
Expand Down
4 changes: 3 additions & 1 deletion v2.3/gbfs_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
"2.0",
"2.1",
"2.2",
"2.3"
"2.3",
"3.0-RC",
"3.0"
]
},
"url": {
Expand Down
5 changes: 4 additions & 1 deletion v3.0-RC/gbfs.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"description":
"GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
"type": "string",
"const": "3.0-RC"
"enum": [
"3.0-RC",
"3.0"
]
},
"data": {
"properties": {
Expand Down
8 changes: 6 additions & 2 deletions v3.0-RC/gbfs_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"description":
"GBFS version number to which the feed conforms, according to the versioning framework.",
"type": "string",
"const": "3.0-RC"
"enum": [
"3.0-RC",
"3.0"
]
},
"data": {
"description": "Response data in the form of name:value pairs.",
Expand All @@ -44,7 +47,8 @@
"2.1",
"2.2",
"2.3",
"3.0-RC"
"3.0-RC",
"3.0"
]
},
"url": {
Expand Down
5 changes: 4 additions & 1 deletion v3.0-RC/geofencing_zones.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
"version": {
"description": "GBFS version number to which the feed conforms, according to the versioning framework.",
"type": "string",
"const": "3.0-RC"
"enum": [
"3.0-RC",
"3.0"
]
},
"data": {
"description": "Array that contains geofencing information for the system.",
Expand Down
5 changes: 4 additions & 1 deletion v3.0-RC/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
"version": {
"description": "GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
"type": "string",
"const": "3.0-RC"
"enum": [
"3.0-RC",
"3.0"
]
},
"data": {
"type": "object",
Expand Down
5 changes: 4 additions & 1 deletion v3.0-RC/station_information.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
"description":
"GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
"type": "string",
"const": "3.0-RC"
"enum": [
"3.0-RC",
"3.0"
]
},
"data": {
"description":
Expand Down
5 changes: 4 additions & 1 deletion v3.0-RC/station_status.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"description":
"GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
"type": "string",
"const": "3.0-RC"
"enum": [
"3.0-RC",
"3.0"
]
},
"data": {
"description":
Expand Down
5 changes: 4 additions & 1 deletion v3.0-RC/system_alerts.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
"description":
"GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
"type": "string",
"const": "3.0-RC"
"enum": [
"3.0-RC",
"3.0"
]
},
"data": {
"description": "Array that contains ad-hoc alerts for the system.",
Expand Down
11 changes: 9 additions & 2 deletions v3.0-RC/system_information.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
"description":
"GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
"type": "string",
"const": "3.0-RC"
"enum": [
"3.0-RC",
"3.0"
]
},
"data": {
"description": "Response data in the form of name:value pairs.",
Expand All @@ -37,7 +40,11 @@
"description":
"List of languages used in translated strings. Each element in the list must be of type Language.",
"type": "array",
"pattern": "^[a-z]{2,3}(-[A-Z]{2})?$"
"items": {
"description": "IETF BCP 47 language code.",
"type": "string",
"pattern": "^[a-z]{2,3}(-[A-Z]{2})?$"
}
},
"name": {
"description": "Name of the system to be displayed to customers. An array with one object per supported language with the following keys:",
Expand Down
5 changes: 4 additions & 1 deletion v3.0-RC/system_pricing_plans.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"description":
"GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
"type": "string",
"const": "3.0-RC"
"enum": [
"3.0-RC",
"3.0"
]
},
"data": {
"description":
Expand Down
5 changes: 4 additions & 1 deletion v3.0-RC/system_regions.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"description":
"GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
"type": "string",
"const": "3.0-RC"
"enum": [
"3.0-RC",
"3.0"
]
},
"data": {
"description": "Describe regions for a system that is broken up by geographic or political region.",
Expand Down
5 changes: 4 additions & 1 deletion v3.0-RC/vehicle_status.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
"description":
"GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
"type": "string",
"const": "3.0-RC"
"enum": [
"3.0-RC",
"3.0"
]
},
"data": {
"description":
Expand Down
5 changes: 4 additions & 1 deletion v3.0-RC/vehicle_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
"description":
"GBFS version number to which the feed conforms, according to the versioning framework.",
"type": "string",
"const": "3.0-RC"
"enum": [
"3.0-RC",
"3.0"
]
},
"data": {
"description": "Response data in the form of name:value pairs.",
Expand Down

0 comments on commit 1074a38

Please sign in to comment.