Reconcile more Agency and Provider fields #531
Labels
Agency
Specific to the Agency API
documentation
documentation change can be for code and/or markdown pages
Provider
Specific to the Provider API
Schema
Implications for JSON Schema or OpenAPI
Milestone
Is your feature request related to a problem? Please describe.
This is a follow-up item from #506 and related to the work for #526.
In updating the JSON Schemas for the Reconciliation work in #506, it has become apparent that there are more areas of Agency and Provider that "almost" overlap. Since we're taking this opportunity in 1.0.0 to introduce breaking changes to the state machine, I propose the following additional breaking changes to a few additional fields. These will allow for more reuse in the schema generation process and generally further improve alignment between Agency and Provider.
Describe the solution you'd like
1. Vehicle model
Agency
GET /vehicles
andPOST /vehicles
uses the following fields to model a vehicle (omitting some for brevity):While in all of the Provider endpoints, the vehicle model looks like:
Proposal: rename Agency fields
type
andpropulsion
to match their Provider corollaries. The fieldpropulsion_type
will be renamed topropulsion_types
to more clearly indicate that it allows an array of values.2. Conditional Trip references
In Agency
POST /vehicles/{device_id}/event
we have the fieldtrip_id
:And in Provider
/status_changes
we have the fieldassociated_trip
:Proposal: rename Provider
associated_trip
totrip_id
to align with Agency, and add the eventtrip_cancel
to the list ofevent_types
that make this trip reference required in either case.Is this a breaking change
Impacted Spec
For which spec is this feature being requested?
agency
provider
The text was updated successfully, but these errors were encountered: