Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jul 31, 2024
1 parent 56dab16 commit cc7611d
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 17
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-912f1aea248013c509e8c8dc1021bbe3d421d4ff8f46773c4a93a48995146eba.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-a76aaa28b1ff275676373d305278b77b1b022f153cf3c9866e322ba253828099.yml
8 changes: 4 additions & 4 deletions src/onebusaway/types/arrival_and_departure_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,15 @@ class ArrivalAndDepartureListResponseDataEntryArrivalsAndDeparture(BaseModel):


class ArrivalAndDepartureListResponseDataEntry(BaseModel):
arrivals_and_departures: Optional[List[ArrivalAndDepartureListResponseDataEntryArrivalsAndDeparture]] = FieldInfo(
alias="arrivalsAndDepartures", default=None
arrivals_and_departures: List[ArrivalAndDepartureListResponseDataEntryArrivalsAndDeparture] = FieldInfo(
alias="arrivalsAndDepartures"
)


class ArrivalAndDepartureListResponseData(BaseModel):
entry: Optional[ArrivalAndDepartureListResponseDataEntry] = None
entry: ArrivalAndDepartureListResponseDataEntry

references: Optional[References] = None
references: References


class ArrivalAndDepartureListResponse(ResponseWrapper):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,9 @@ class ArrivalAndDepartureRetrieveResponseDataEntry(BaseModel):


class ArrivalAndDepartureRetrieveResponseData(BaseModel):
entry: Optional[ArrivalAndDepartureRetrieveResponseDataEntry] = None
entry: ArrivalAndDepartureRetrieveResponseDataEntry

references: Optional[References] = None
references: References


class ArrivalAndDepartureRetrieveResponse(ResponseWrapper):
Expand Down
4 changes: 2 additions & 2 deletions src/onebusaway/types/route_retrieve_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class RouteRetrieveResponseDataEntry(BaseModel):


class RouteRetrieveResponseData(BaseModel):
entry: Optional[RouteRetrieveResponseDataEntry] = None
entry: RouteRetrieveResponseDataEntry

references: Optional[References] = None
references: References


class RouteRetrieveResponse(ResponseWrapper):
Expand Down
6 changes: 3 additions & 3 deletions src/onebusaway/types/stop_ids_for_agency_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@


class StopIDsForAgencyListResponseData(BaseModel):
limit_exceeded: Optional[bool] = FieldInfo(alias="limitExceeded", default=None)
list: List[str]

list: Optional[List[str]] = None
references: References

references: Optional[References] = None
limit_exceeded: Optional[bool] = FieldInfo(alias="limitExceeded", default=None)


class StopIDsForAgencyListResponse(ResponseWrapper):
Expand Down
4 changes: 2 additions & 2 deletions src/onebusaway/types/stop_retrieve_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class StopRetrieveResponseDataEntry(BaseModel):


class StopRetrieveResponseData(BaseModel):
entry: Optional[StopRetrieveResponseDataEntry] = None
entry: StopRetrieveResponseDataEntry

references: Optional[References] = None
references: References


class StopRetrieveResponse(ResponseWrapper):
Expand Down
6 changes: 3 additions & 3 deletions src/onebusaway/types/stops_for_location_retrieve_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ class StopsForLocationRetrieveResponseDataList(BaseModel):


class StopsForLocationRetrieveResponseData(BaseModel):
limit_exceeded: Optional[bool] = FieldInfo(alias="limitExceeded", default=None)
list: List[StopsForLocationRetrieveResponseDataList]

list: Optional[List[StopsForLocationRetrieveResponseDataList]] = None
references: References

references: Optional[References] = None
limit_exceeded: Optional[bool] = FieldInfo(alias="limitExceeded", default=None)


class StopsForLocationRetrieveResponse(ResponseWrapper):
Expand Down
2 changes: 1 addition & 1 deletion src/onebusaway/types/stops_for_route_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ class StopsForRouteListResponseData(BaseModel):


class StopsForRouteListResponse(ResponseWrapper):
data: Optional[StopsForRouteListResponseData] = None
data: StopsForRouteListResponseData
4 changes: 2 additions & 2 deletions src/onebusaway/types/trip_detail_retrieve_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ class TripDetailRetrieveResponseDataEntry(BaseModel):


class TripDetailRetrieveResponseData(BaseModel):
entry: Optional[TripDetailRetrieveResponseDataEntry] = None
entry: TripDetailRetrieveResponseDataEntry

references: Optional[References] = None
references: References


class TripDetailRetrieveResponse(ResponseWrapper):
Expand Down
4 changes: 2 additions & 2 deletions src/onebusaway/types/trip_for_vehicle_retrieve_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ class TripForVehicleRetrieveResponseDataEntry(BaseModel):


class TripForVehicleRetrieveResponseData(BaseModel):
entry: Optional[TripForVehicleRetrieveResponseDataEntry] = None
entry: TripForVehicleRetrieveResponseDataEntry

references: Optional[References] = None
references: References


class TripForVehicleRetrieveResponse(ResponseWrapper):
Expand Down
4 changes: 2 additions & 2 deletions src/onebusaway/types/trip_retrieve_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class TripRetrieveResponseDataEntry(BaseModel):


class TripRetrieveResponseData(BaseModel):
entry: Optional[TripRetrieveResponseDataEntry] = None
entry: TripRetrieveResponseDataEntry

references: Optional[References] = None
references: References


class TripRetrieveResponse(ResponseWrapper):
Expand Down
8 changes: 4 additions & 4 deletions src/onebusaway/types/trips_for_location_retrieve_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ class TripsForLocationRetrieveResponseDataList(BaseModel):


class TripsForLocationRetrieveResponseData(BaseModel):
list: List[TripsForLocationRetrieveResponseDataList]

references: References

limit_exceeded: Optional[bool] = FieldInfo(alias="limitExceeded", default=None)
"""Indicates if the limit of trips has been exceeded"""

list: Optional[List[TripsForLocationRetrieveResponseDataList]] = None

out_of_range: Optional[bool] = FieldInfo(alias="outOfRange", default=None)
"""Indicates if the search location is out of range"""

references: Optional[References] = None


class TripsForLocationRetrieveResponse(ResponseWrapper):
data: Optional[TripsForLocationRetrieveResponseData] = None

0 comments on commit cc7611d

Please sign in to comment.