Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix schemas for v3.0-RC #1

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion v2.1/geofencing_zones.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@
},
"required": ["type", "features"]
}
}
},
"required": ["geofencing_zones"]
}
},
"required": ["last_updated", "ttl", "version", "data"]
Expand Down
3 changes: 2 additions & 1 deletion v2.2/geofencing_zones.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@
},
"required": ["type", "features"]
}
}
},
"required": ["geofencing_zones"]
}
},
"required": ["last_updated", "ttl", "version", "data"]
Expand Down
3 changes: 2 additions & 1 deletion v2.3/geofencing_zones.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@
},
"required": ["type", "features"]
}
}
},
"required": ["geofencing_zones"]
}
},
"required": ["last_updated", "ttl", "version", "data"]
Expand Down
1 change: 0 additions & 1 deletion v3.0-RC/gbfs.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"type": "string",
"enum": [
"gbfs",
"manifest",
"gbfs_versions",
"system_information",
"vehicle_types",
Expand Down
9 changes: 5 additions & 4 deletions v3.0-RC/geofencing_zones.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"minimum": 1450155600
},
"rules": {
"description": "Array that contains one object per rule.",
"description": "Array of Rule objects defining restrictions that apply within the area of the polygon.",
"type": "array",
"items": {
"type": "object",
Expand Down Expand Up @@ -156,8 +156,8 @@
},
"required": ["type", "features"]
},
"rules": {
"description": "Array that contains one object per rule.",
"global_rules": {
"description": "Array of Rule objects defining restrictions that apply globally in all areas as the default restrictions, except where overridden with an explicit geofencing zone.",
"type": "array",
"items": {
"type": "object",
Expand Down Expand Up @@ -193,7 +193,8 @@
"required": ["ride_start_allowed", "ride_end_allowed", "ride_through_allowed"]
}
}
}
},
"required": ["geofencing_zones", "global_rules"]
}
},
"required": ["last_updated", "ttl", "version", "data"]
Expand Down
3 changes: 2 additions & 1 deletion v3.0-RC/system_alerts.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@
"properties": {
"text": {
"description": "The translated text.",
"type": "string"
"type": "string",
"format": "uri"
},
"language": {
"description": "IETF BCP 47 language code.",
Expand Down
6 changes: 4 additions & 2 deletions v3.0-RC/system_information.json
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,8 @@
"properties": {
"text": {
"description": "The translated text.",
"type": "string"
"type": "string",
"format": "uri"
},
"language": {
"description": "IETF BCP 47 language code.",
Expand All @@ -1130,7 +1131,8 @@
"properties": {
"text": {
"description": "The translated text.",
"type": "string"
"type": "string",
"format": "uri"
},
"language": {
"description": "IETF BCP 47 language code.",
Expand Down