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

Add 'unspecified' events to some schema states #560

Merged
merged 1 commit into from
Jul 31, 2020
Merged
Show file tree
Hide file tree
Changes from all 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
5 changes: 1 addition & 4 deletions general-information.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,18 +289,15 @@ Vehicles can enter the `unknown` state to and from any other state with the foll
| `available` | `non_operational` | `maintenance` | The vehicle requires some non-charge-related maintenance |
| `available` | `non_operational` | `off_hours` | The vehicle has exited operating hours (per the regulator or per the Provider) |
| `available` | `non_operational` | `system_suspend` | The vehicle is not available because of e.g. weather or temporary regulations |
| `available` | `non_operational` | `unspecified` | The vehicle became unavailable, but he Provider cannot definitively (yet) specify the reason. |
| `available`, `unknown` | `non_operational` | `unspecified` | The vehicle became unavailable, but the Provider cannot definitively (yet) specify the reason. |
| `unknown` | `non_operational` | `comms_restored` | The vehicle transmitted status information after a period of being out of communication |
| `unknown` | `non_operational` | `unspecified` | The vehicle became unavailable, but he Provider cannot definitively (yet) specify the reason. |
| `available`, `non_operational`, `elsewhere` | `removed` | `rebalance_pick_up` | The provider picked up the vehicle for rebalancing purposes |
| `available`, `non_operational`, `elsewhere` | `removed` | `maintenance_pick_up` | The provider picked up the vehicle to service it |
| `available`, `non_operational`, `elsewhere`, `unknown` | `removed` | `agency_pick_up` | An agency picked up the vehicle for some reason, e.g. illegal placement |
| `available`, `non_operational`, `elsewhere` | `removed` | `compliance_pick_up` | The provider picked up the vehicle because it was placed in a non-compliant location |
| `available`, `non_operational`, `elsewhere`, `unknown` | `removed` | `decommissioned` | The provider has removed the vehicle from its fleet |
| `unknown`, `non_operational`, `available`, `elsewhere` | `removed` | `unspecified` | The vehicle was removed, but the provider cannot definitively (yet) specify the reason |
| `unknown` | `removed` | `comms_restored` | The vehicle transmitted status information after a period of being in an unknown state |
| `unknown` | `removed` | `unspecified` | The provider cannot definitively state why a vehicle was removed |
| `non_operational` | `removed` | `unspecified` | The provider cannot definitively state why a non-opertional vehicle was removed |
| `available`, `elsewhere`, `non_operational`, `on_trip`, `removed`, `reserved` | `unknown` | `missing` | The vehicle is not at its last reported GPS location, or that location is wildly in error |
| `available`, `elsewhere`, `non_operational`, `on_trip`, `removed`, `reserved` | `unknown` | `comms_lost` | The vehicle is unable to transmit its GPS location or other status information |
| `available`, `elsewhere`, `non_operational`, `on_trip`, `removed`, `reserved` | `unknown` | `unspecified` | The provider cannot definitively (yet) specify the reason for the unknown state |
Expand Down
9 changes: 6 additions & 3 deletions schema/templates/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,8 @@
"contains": {
"enum": [
"comms_restored",
"trip_leave_jurisdiction"
"trip_leave_jurisdiction",
"unspecified"
]
}
}
Expand Down Expand Up @@ -552,7 +553,8 @@
"enum": [
"comms_restored",
"trip_enter_jurisdiction",
"trip_start"
"trip_start",
"unspecified"
]
}
}
Expand Down Expand Up @@ -586,7 +588,8 @@
"contains": {
"enum": [
"comms_restored",
"reservation_start"
"reservation_start",
"unspecified"
]
}
}
Expand Down