Skip to content

Commit 4557f68

Browse files
feat(api): api update
1 parent 7a83ff7 commit 4557f68

File tree

3 files changed

+66
-88
lines changed

3 files changed

+66
-88
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-162c2011b5784e2258775ec72e5da7bc86cb411d738b627f1eae6a0d56ee3aec.yml
3-
openapi_spec_hash: 2e32c25a86f9ff55bab7cfa1d9c985a7
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-22e1c98416f77779b2c07db272016be0b623b94f6b55cca2d1909f9dc4032c3f.yml
3+
openapi_spec_hash: dd25fff6bc185752d92e93f6e47d3a5e
44
config_hash: 3871f5d21bb38ddd334ec04721dea64d

stopsforroute.go

Lines changed: 58 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -72,60 +72,39 @@ func (r stopsForRouteListResponseJSON) RawJSON() string {
7272
}
7373

7474
type StopsForRouteListResponseData struct {
75-
Data StopsForRouteListResponseDataData `json:"data" api:"required"`
76-
JSON stopsForRouteListResponseDataJSON `json:"-"`
75+
Entry StopsForRouteListResponseDataEntry `json:"entry" api:"required"`
76+
References shared.References `json:"references" api:"required"`
77+
JSON stopsForRouteListResponseDataJSON `json:"-"`
7778
}
7879

7980
// stopsForRouteListResponseDataJSON contains the JSON metadata for the struct
8081
// [StopsForRouteListResponseData]
8182
type stopsForRouteListResponseDataJSON struct {
82-
Data apijson.Field
83-
raw string
84-
ExtraFields map[string]apijson.Field
85-
}
86-
87-
func (r *StopsForRouteListResponseData) UnmarshalJSON(data []byte) (err error) {
88-
return apijson.UnmarshalRoot(data, r)
89-
}
90-
91-
func (r stopsForRouteListResponseDataJSON) RawJSON() string {
92-
return r.raw
93-
}
94-
95-
type StopsForRouteListResponseDataData struct {
96-
Entry StopsForRouteListResponseDataDataEntry `json:"entry" api:"required"`
97-
References shared.References `json:"references" api:"required"`
98-
JSON stopsForRouteListResponseDataDataJSON `json:"-"`
99-
}
100-
101-
// stopsForRouteListResponseDataDataJSON contains the JSON metadata for the struct
102-
// [StopsForRouteListResponseDataData]
103-
type stopsForRouteListResponseDataDataJSON struct {
10483
Entry apijson.Field
10584
References apijson.Field
10685
raw string
10786
ExtraFields map[string]apijson.Field
10887
}
10988

110-
func (r *StopsForRouteListResponseDataData) UnmarshalJSON(data []byte) (err error) {
89+
func (r *StopsForRouteListResponseData) UnmarshalJSON(data []byte) (err error) {
11190
return apijson.UnmarshalRoot(data, r)
11291
}
11392

114-
func (r stopsForRouteListResponseDataDataJSON) RawJSON() string {
93+
func (r stopsForRouteListResponseDataJSON) RawJSON() string {
11594
return r.raw
11695
}
11796

118-
type StopsForRouteListResponseDataDataEntry struct {
119-
Polylines []StopsForRouteListResponseDataDataEntryPolyline `json:"polylines"`
120-
RouteID string `json:"routeId"`
121-
StopGroupings []StopsForRouteListResponseDataDataEntryStopGrouping `json:"stopGroupings"`
122-
StopIDs []string `json:"stopIds"`
123-
JSON stopsForRouteListResponseDataDataEntryJSON `json:"-"`
97+
type StopsForRouteListResponseDataEntry struct {
98+
Polylines []StopsForRouteListResponseDataEntryPolyline `json:"polylines"`
99+
RouteID string `json:"routeId"`
100+
StopGroupings []StopsForRouteListResponseDataEntryStopGrouping `json:"stopGroupings"`
101+
StopIDs []string `json:"stopIds"`
102+
JSON stopsForRouteListResponseDataEntryJSON `json:"-"`
124103
}
125104

126-
// stopsForRouteListResponseDataDataEntryJSON contains the JSON metadata for the
127-
// struct [StopsForRouteListResponseDataDataEntry]
128-
type stopsForRouteListResponseDataDataEntryJSON struct {
105+
// stopsForRouteListResponseDataEntryJSON contains the JSON metadata for the struct
106+
// [StopsForRouteListResponseDataEntry]
107+
type stopsForRouteListResponseDataEntryJSON struct {
129108
Polylines apijson.Field
130109
RouteID apijson.Field
131110
StopGroupings apijson.Field
@@ -134,50 +113,50 @@ type stopsForRouteListResponseDataDataEntryJSON struct {
134113
ExtraFields map[string]apijson.Field
135114
}
136115

137-
func (r *StopsForRouteListResponseDataDataEntry) UnmarshalJSON(data []byte) (err error) {
116+
func (r *StopsForRouteListResponseDataEntry) UnmarshalJSON(data []byte) (err error) {
138117
return apijson.UnmarshalRoot(data, r)
139118
}
140119

141-
func (r stopsForRouteListResponseDataDataEntryJSON) RawJSON() string {
120+
func (r stopsForRouteListResponseDataEntryJSON) RawJSON() string {
142121
return r.raw
143122
}
144123

145-
type StopsForRouteListResponseDataDataEntryPolyline struct {
146-
Length int64 `json:"length"`
147-
Levels string `json:"levels"`
148-
Points string `json:"points"`
149-
JSON stopsForRouteListResponseDataDataEntryPolylineJSON `json:"-"`
124+
type StopsForRouteListResponseDataEntryPolyline struct {
125+
Length int64 `json:"length"`
126+
Levels string `json:"levels"`
127+
Points string `json:"points"`
128+
JSON stopsForRouteListResponseDataEntryPolylineJSON `json:"-"`
150129
}
151130

152-
// stopsForRouteListResponseDataDataEntryPolylineJSON contains the JSON metadata
153-
// for the struct [StopsForRouteListResponseDataDataEntryPolyline]
154-
type stopsForRouteListResponseDataDataEntryPolylineJSON struct {
131+
// stopsForRouteListResponseDataEntryPolylineJSON contains the JSON metadata for
132+
// the struct [StopsForRouteListResponseDataEntryPolyline]
133+
type stopsForRouteListResponseDataEntryPolylineJSON struct {
155134
Length apijson.Field
156135
Levels apijson.Field
157136
Points apijson.Field
158137
raw string
159138
ExtraFields map[string]apijson.Field
160139
}
161140

162-
func (r *StopsForRouteListResponseDataDataEntryPolyline) UnmarshalJSON(data []byte) (err error) {
141+
func (r *StopsForRouteListResponseDataEntryPolyline) UnmarshalJSON(data []byte) (err error) {
163142
return apijson.UnmarshalRoot(data, r)
164143
}
165144

166-
func (r stopsForRouteListResponseDataDataEntryPolylineJSON) RawJSON() string {
145+
func (r stopsForRouteListResponseDataEntryPolylineJSON) RawJSON() string {
167146
return r.raw
168147
}
169148

170-
type StopsForRouteListResponseDataDataEntryStopGrouping struct {
171-
ID string `json:"id"`
172-
Name StopsForRouteListResponseDataDataEntryStopGroupingsName `json:"name"`
173-
Polylines []StopsForRouteListResponseDataDataEntryStopGroupingsPolyline `json:"polylines"`
174-
StopIDs []string `json:"stopIds"`
175-
JSON stopsForRouteListResponseDataDataEntryStopGroupingJSON `json:"-"`
149+
type StopsForRouteListResponseDataEntryStopGrouping struct {
150+
ID string `json:"id"`
151+
Name StopsForRouteListResponseDataEntryStopGroupingsName `json:"name"`
152+
Polylines []StopsForRouteListResponseDataEntryStopGroupingsPolyline `json:"polylines"`
153+
StopIDs []string `json:"stopIds"`
154+
JSON stopsForRouteListResponseDataEntryStopGroupingJSON `json:"-"`
176155
}
177156

178-
// stopsForRouteListResponseDataDataEntryStopGroupingJSON contains the JSON
179-
// metadata for the struct [StopsForRouteListResponseDataDataEntryStopGrouping]
180-
type stopsForRouteListResponseDataDataEntryStopGroupingJSON struct {
157+
// stopsForRouteListResponseDataEntryStopGroupingJSON contains the JSON metadata
158+
// for the struct [StopsForRouteListResponseDataEntryStopGrouping]
159+
type stopsForRouteListResponseDataEntryStopGroupingJSON struct {
181160
ID apijson.Field
182161
Name apijson.Field
183162
Polylines apijson.Field
@@ -186,63 +165,62 @@ type stopsForRouteListResponseDataDataEntryStopGroupingJSON struct {
186165
ExtraFields map[string]apijson.Field
187166
}
188167

189-
func (r *StopsForRouteListResponseDataDataEntryStopGrouping) UnmarshalJSON(data []byte) (err error) {
168+
func (r *StopsForRouteListResponseDataEntryStopGrouping) UnmarshalJSON(data []byte) (err error) {
190169
return apijson.UnmarshalRoot(data, r)
191170
}
192171

193-
func (r stopsForRouteListResponseDataDataEntryStopGroupingJSON) RawJSON() string {
172+
func (r stopsForRouteListResponseDataEntryStopGroupingJSON) RawJSON() string {
194173
return r.raw
195174
}
196175

197-
type StopsForRouteListResponseDataDataEntryStopGroupingsName struct {
198-
Name string `json:"name"`
199-
Names []string `json:"names"`
200-
Type string `json:"type"`
201-
JSON stopsForRouteListResponseDataDataEntryStopGroupingsNameJSON `json:"-"`
176+
type StopsForRouteListResponseDataEntryStopGroupingsName struct {
177+
Name string `json:"name"`
178+
Names []string `json:"names"`
179+
Type string `json:"type"`
180+
JSON stopsForRouteListResponseDataEntryStopGroupingsNameJSON `json:"-"`
202181
}
203182

204-
// stopsForRouteListResponseDataDataEntryStopGroupingsNameJSON contains the JSON
205-
// metadata for the struct
206-
// [StopsForRouteListResponseDataDataEntryStopGroupingsName]
207-
type stopsForRouteListResponseDataDataEntryStopGroupingsNameJSON struct {
183+
// stopsForRouteListResponseDataEntryStopGroupingsNameJSON contains the JSON
184+
// metadata for the struct [StopsForRouteListResponseDataEntryStopGroupingsName]
185+
type stopsForRouteListResponseDataEntryStopGroupingsNameJSON struct {
208186
Name apijson.Field
209187
Names apijson.Field
210188
Type apijson.Field
211189
raw string
212190
ExtraFields map[string]apijson.Field
213191
}
214192

215-
func (r *StopsForRouteListResponseDataDataEntryStopGroupingsName) UnmarshalJSON(data []byte) (err error) {
193+
func (r *StopsForRouteListResponseDataEntryStopGroupingsName) UnmarshalJSON(data []byte) (err error) {
216194
return apijson.UnmarshalRoot(data, r)
217195
}
218196

219-
func (r stopsForRouteListResponseDataDataEntryStopGroupingsNameJSON) RawJSON() string {
197+
func (r stopsForRouteListResponseDataEntryStopGroupingsNameJSON) RawJSON() string {
220198
return r.raw
221199
}
222200

223-
type StopsForRouteListResponseDataDataEntryStopGroupingsPolyline struct {
224-
Length int64 `json:"length"`
225-
Levels string `json:"levels"`
226-
Points string `json:"points"`
227-
JSON stopsForRouteListResponseDataDataEntryStopGroupingsPolylineJSON `json:"-"`
201+
type StopsForRouteListResponseDataEntryStopGroupingsPolyline struct {
202+
Length int64 `json:"length"`
203+
Levels string `json:"levels"`
204+
Points string `json:"points"`
205+
JSON stopsForRouteListResponseDataEntryStopGroupingsPolylineJSON `json:"-"`
228206
}
229207

230-
// stopsForRouteListResponseDataDataEntryStopGroupingsPolylineJSON contains the
231-
// JSON metadata for the struct
232-
// [StopsForRouteListResponseDataDataEntryStopGroupingsPolyline]
233-
type stopsForRouteListResponseDataDataEntryStopGroupingsPolylineJSON struct {
208+
// stopsForRouteListResponseDataEntryStopGroupingsPolylineJSON contains the JSON
209+
// metadata for the struct
210+
// [StopsForRouteListResponseDataEntryStopGroupingsPolyline]
211+
type stopsForRouteListResponseDataEntryStopGroupingsPolylineJSON struct {
234212
Length apijson.Field
235213
Levels apijson.Field
236214
Points apijson.Field
237215
raw string
238216
ExtraFields map[string]apijson.Field
239217
}
240218

241-
func (r *StopsForRouteListResponseDataDataEntryStopGroupingsPolyline) UnmarshalJSON(data []byte) (err error) {
219+
func (r *StopsForRouteListResponseDataEntryStopGroupingsPolyline) UnmarshalJSON(data []byte) (err error) {
242220
return apijson.UnmarshalRoot(data, r)
243221
}
244222

245-
func (r stopsForRouteListResponseDataDataEntryStopGroupingsPolylineJSON) RawJSON() string {
223+
func (r stopsForRouteListResponseDataEntryStopGroupingsPolylineJSON) RawJSON() string {
246224
return r.raw
247225
}
248226

vehiclesforagency.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ func (r vehiclesForAgencyListResponseDataJSON) RawJSON() string {
9999
type VehiclesForAgencyListResponseDataList struct {
100100
LastLocationUpdateTime int64 `json:"lastLocationUpdateTime" api:"required"`
101101
LastUpdateTime int64 `json:"lastUpdateTime" api:"required"`
102-
Location VehiclesForAgencyListResponseDataListLocation `json:"location" api:"required"`
103-
TripID string `json:"tripId" api:"required"`
104-
TripStatus VehiclesForAgencyListResponseDataListTripStatus `json:"tripStatus" api:"required"`
105102
VehicleID string `json:"vehicleId" api:"required"`
103+
Location VehiclesForAgencyListResponseDataListLocation `json:"location"`
106104
OccupancyCapacity int64 `json:"occupancyCapacity"`
107105
OccupancyCount int64 `json:"occupancyCount"`
108106
OccupancyStatus string `json:"occupancyStatus"`
109107
Phase string `json:"phase"`
110108
Status string `json:"status"`
109+
TripID string `json:"tripId"`
110+
TripStatus VehiclesForAgencyListResponseDataListTripStatus `json:"tripStatus"`
111111
JSON vehiclesForAgencyListResponseDataListJSON `json:"-"`
112112
}
113113

@@ -116,15 +116,15 @@ type VehiclesForAgencyListResponseDataList struct {
116116
type vehiclesForAgencyListResponseDataListJSON struct {
117117
LastLocationUpdateTime apijson.Field
118118
LastUpdateTime apijson.Field
119-
Location apijson.Field
120-
TripID apijson.Field
121-
TripStatus apijson.Field
122119
VehicleID apijson.Field
120+
Location apijson.Field
123121
OccupancyCapacity apijson.Field
124122
OccupancyCount apijson.Field
125123
OccupancyStatus apijson.Field
126124
Phase apijson.Field
127125
Status apijson.Field
126+
TripID apijson.Field
127+
TripStatus apijson.Field
128128
raw string
129129
ExtraFields map[string]apijson.Field
130130
}

0 commit comments

Comments
 (0)