Skip to content

Commit b276421

Browse files
feat(api): api update
1 parent 38b37eb commit b276421

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 29
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-0c305d11543f8fc11bd55586c4dc4a724b10de1898cab0fe11364b4db6455752.yml
3-
openapi_spec_hash: 6d10c2ac411cd65f30d200f298577b32
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-30baad9d29b0909d180aae300750a0cd8425b52d7a60ba365b6aa4e5f8da6fab.yml
3+
openapi_spec_hash: 218466af34966d9b08728f107cb3b3b0
44
config_hash: 3871f5d21bb38ddd334ec04721dea64d

arrivalanddeparture.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ type ArrivalAndDepartureGetResponseDataEntryTripStatus struct {
277277
ClosestStopTimeOffset int64 `json:"closestStopTimeOffset"`
278278
// Information about frequency-based scheduling, if applicable to the trip.
279279
Frequency string `json:"frequency"`
280-
// Last known location of the transit vehicle.
281-
LastKnownLocation ArrivalAndDepartureGetResponseDataEntryTripStatusLastKnownLocation `json:"lastKnownLocation"`
280+
// Last known location of the transit vehicle (optional).
281+
LastKnownLocation ArrivalAndDepartureGetResponseDataEntryTripStatusLastKnownLocation `json:"lastKnownLocation" api:"nullable"`
282282
// Last known orientation value received in real-time from the transit vehicle.
283283
LastKnownOrientation float64 `json:"lastKnownOrientation"`
284284
// ID of the next stop the transit vehicle is scheduled to arrive at.
@@ -342,7 +342,7 @@ func (r arrivalAndDepartureGetResponseDataEntryTripStatusJSON) RawJSON() string
342342
return r.raw
343343
}
344344

345-
// Last known location of the transit vehicle.
345+
// Last known location of the transit vehicle (optional).
346346
type ArrivalAndDepartureGetResponseDataEntryTripStatusLastKnownLocation struct {
347347
// Latitude of the last known location of the transit vehicle.
348348
Lat float64 `json:"lat"`
@@ -633,8 +633,8 @@ type ArrivalAndDepartureListResponseDataEntryArrivalsAndDeparturesTripStatus str
633633
ClosestStopTimeOffset int64 `json:"closestStopTimeOffset"`
634634
// Information about frequency-based scheduling, if applicable to the trip.
635635
Frequency string `json:"frequency"`
636-
// Last known location of the transit vehicle.
637-
LastKnownLocation ArrivalAndDepartureListResponseDataEntryArrivalsAndDeparturesTripStatusLastKnownLocation `json:"lastKnownLocation"`
636+
// Last known location of the transit vehicle (optional).
637+
LastKnownLocation ArrivalAndDepartureListResponseDataEntryArrivalsAndDeparturesTripStatusLastKnownLocation `json:"lastKnownLocation" api:"nullable"`
638638
// Last known orientation value received in real-time from the transit vehicle.
639639
LastKnownOrientation float64 `json:"lastKnownOrientation"`
640640
// ID of the next stop the transit vehicle is scheduled to arrive at.
@@ -699,7 +699,7 @@ func (r arrivalAndDepartureListResponseDataEntryArrivalsAndDeparturesTripStatusJ
699699
return r.raw
700700
}
701701

702-
// Last known location of the transit vehicle.
702+
// Last known location of the transit vehicle (optional).
703703
type ArrivalAndDepartureListResponseDataEntryArrivalsAndDeparturesTripStatusLastKnownLocation struct {
704704
// Latitude of the last known location of the transit vehicle.
705705
Lat float64 `json:"lat"`

tripdetail.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ type TripDetailGetResponseDataEntryStatus struct {
225225
ClosestStopTimeOffset int64 `json:"closestStopTimeOffset"`
226226
// Information about frequency-based scheduling, if applicable to the trip.
227227
Frequency string `json:"frequency"`
228-
// Last known location of the transit vehicle.
229-
LastKnownLocation TripDetailGetResponseDataEntryStatusLastKnownLocation `json:"lastKnownLocation"`
228+
// Last known location of the transit vehicle (optional).
229+
LastKnownLocation TripDetailGetResponseDataEntryStatusLastKnownLocation `json:"lastKnownLocation" api:"nullable"`
230230
// Last known orientation value received in real-time from the transit vehicle.
231231
LastKnownOrientation float64 `json:"lastKnownOrientation"`
232232
// ID of the next stop the transit vehicle is scheduled to arrive at.
@@ -290,7 +290,7 @@ func (r tripDetailGetResponseDataEntryStatusJSON) RawJSON() string {
290290
return r.raw
291291
}
292292

293-
// Last known location of the transit vehicle.
293+
// Last known location of the transit vehicle (optional).
294294
type TripDetailGetResponseDataEntryStatusLastKnownLocation struct {
295295
// Latitude of the last known location of the transit vehicle.
296296
Lat float64 `json:"lat"`

tripforvehicle.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ type TripForVehicleGetResponseDataEntryStatus struct {
225225
ClosestStopTimeOffset int64 `json:"closestStopTimeOffset"`
226226
// Information about frequency-based scheduling, if applicable to the trip.
227227
Frequency string `json:"frequency"`
228-
// Last known location of the transit vehicle.
229-
LastKnownLocation TripForVehicleGetResponseDataEntryStatusLastKnownLocation `json:"lastKnownLocation"`
228+
// Last known location of the transit vehicle (optional).
229+
LastKnownLocation TripForVehicleGetResponseDataEntryStatusLastKnownLocation `json:"lastKnownLocation" api:"nullable"`
230230
// Last known orientation value received in real-time from the transit vehicle.
231231
LastKnownOrientation float64 `json:"lastKnownOrientation"`
232232
// ID of the next stop the transit vehicle is scheduled to arrive at.
@@ -290,7 +290,7 @@ func (r tripForVehicleGetResponseDataEntryStatusJSON) RawJSON() string {
290290
return r.raw
291291
}
292292

293-
// Last known location of the transit vehicle.
293+
// Last known location of the transit vehicle (optional).
294294
type TripForVehicleGetResponseDataEntryStatusLastKnownLocation struct {
295295
// Latitude of the last known location of the transit vehicle.
296296
Lat float64 `json:"lat"`

tripsforlocation.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ type TripsForLocationListResponseDataListStatus struct {
225225
ClosestStopTimeOffset int64 `json:"closestStopTimeOffset"`
226226
// Information about frequency-based scheduling, if applicable to the trip.
227227
Frequency string `json:"frequency"`
228-
// Last known location of the transit vehicle.
229-
LastKnownLocation TripsForLocationListResponseDataListStatusLastKnownLocation `json:"lastKnownLocation"`
228+
// Last known location of the transit vehicle (optional).
229+
LastKnownLocation TripsForLocationListResponseDataListStatusLastKnownLocation `json:"lastKnownLocation" api:"nullable"`
230230
// Last known orientation value received in real-time from the transit vehicle.
231231
LastKnownOrientation float64 `json:"lastKnownOrientation"`
232232
// ID of the next stop the transit vehicle is scheduled to arrive at.
@@ -290,7 +290,7 @@ func (r tripsForLocationListResponseDataListStatusJSON) RawJSON() string {
290290
return r.raw
291291
}
292292

293-
// Last known location of the transit vehicle.
293+
// Last known location of the transit vehicle (optional).
294294
type TripsForLocationListResponseDataListStatusLastKnownLocation struct {
295295
// Latitude of the last known location of the transit vehicle.
296296
Lat float64 `json:"lat"`

tripsforroute.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ type TripsForRouteListResponseDataListStatus struct {
227227
ClosestStopTimeOffset int64 `json:"closestStopTimeOffset"`
228228
// Information about frequency-based scheduling, if applicable to the trip.
229229
Frequency string `json:"frequency"`
230-
// Last known location of the transit vehicle.
231-
LastKnownLocation TripsForRouteListResponseDataListStatusLastKnownLocation `json:"lastKnownLocation"`
230+
// Last known location of the transit vehicle (optional).
231+
LastKnownLocation TripsForRouteListResponseDataListStatusLastKnownLocation `json:"lastKnownLocation" api:"nullable"`
232232
// Last known orientation value received in real-time from the transit vehicle.
233233
LastKnownOrientation float64 `json:"lastKnownOrientation"`
234234
// ID of the next stop the transit vehicle is scheduled to arrive at.
@@ -292,7 +292,7 @@ func (r tripsForRouteListResponseDataListStatusJSON) RawJSON() string {
292292
return r.raw
293293
}
294294

295-
// Last known location of the transit vehicle.
295+
// Last known location of the transit vehicle (optional).
296296
type TripsForRouteListResponseDataListStatusLastKnownLocation struct {
297297
// Latitude of the last known location of the transit vehicle.
298298
Lat float64 `json:"lat"`

vehiclesforagency.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ type VehiclesForAgencyListResponseDataListTripStatus struct {
200200
ClosestStopTimeOffset int64 `json:"closestStopTimeOffset"`
201201
// Information about frequency-based scheduling, if applicable to the trip.
202202
Frequency string `json:"frequency"`
203-
// Last known location of the transit vehicle.
204-
LastKnownLocation VehiclesForAgencyListResponseDataListTripStatusLastKnownLocation `json:"lastKnownLocation"`
203+
// Last known location of the transit vehicle (optional).
204+
LastKnownLocation VehiclesForAgencyListResponseDataListTripStatusLastKnownLocation `json:"lastKnownLocation" api:"nullable"`
205205
// Last known orientation value received in real-time from the transit vehicle.
206206
LastKnownOrientation float64 `json:"lastKnownOrientation"`
207207
// ID of the next stop the transit vehicle is scheduled to arrive at.
@@ -265,7 +265,7 @@ func (r vehiclesForAgencyListResponseDataListTripStatusJSON) RawJSON() string {
265265
return r.raw
266266
}
267267

268-
// Last known location of the transit vehicle.
268+
// Last known location of the transit vehicle (optional).
269269
type VehiclesForAgencyListResponseDataListTripStatusLastKnownLocation struct {
270270
// Latitude of the last known location of the transit vehicle.
271271
Lat float64 `json:"lat"`

0 commit comments

Comments
 (0)