-
Notifications
You must be signed in to change notification settings - Fork 232
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
Explicitly allow associated_trip
for any event type
#297
Explicitly allow associated_trip
for any event type
#297
Conversation
associated_trip_id
for any event typeassociated_trip
for any event type
This implements the change suggested in openmobilityfoundation#289 by clarifying that any trip-ending event can and should have an `associated_trip`, not just `user_drop_off` events. Since the Provider event system currently doesn't define which states are allowed to transition to which other states, it's already spec-compliant to follow a `reserved`/`user_pick_up` event with an `unavailable`/`low_battery` event, and this is the most semantically-accurate way to describe the scenario where a device shuts down during a trip because of low battery. In this situation, the implementer should include an `associated_trip` field in both events so that API consumers can correctly identify these events as the endpoints of the relevant trip.
1309054
to
29760f8
Compare
@rf- @hunterowens so just to circle back, are we OK with this being a language-only change - and leaving the JSON schema alone? Or do we want to add additional |
I think |
PR openmobilityfoundation#297 already updated the spec language to make it clear that any status change is allowed to have an `associated_trip`, but I didn't realize this was incompatible with the existing schema. The schema should now match the spec, which states that `user_pick_up` and `user_drop_off` events must have an `associated_trip` but other events may have one when applicable.
PR #297 already updated the spec language to make it clear that any status change is allowed to have an `associated_trip`, but I didn't realize this was incompatible with the existing schema. The schema should now match the spec, which states that `user_pick_up` and `user_drop_off` events must have an `associated_trip` but other events may have one when applicable.
This implements the change suggested in #289 by clarifying that any
trip-ending event can and should have an
associated_trip
, not justuser_drop_off
events.Since the Provider event system currently doesn't define which states
are allowed to transition to which other states, it's already
spec-compliant to follow a
reserved
/user_pick_up
event with anunavailable
/low_battery
event, and this is the mostsemantically-accurate way to describe the scenario where a device shuts
down during a trip because of low battery. In this situation, the
implementer should include an
associated_trip
field in both eventsso that API consumers can correctly identify these events as the
endpoints of the relevant trip.
Is this a breaking change
Provider
oragency
provider
agency