Skip to content

Commit 64e3e43

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#25)
1 parent 92184d0 commit 64e3e43

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 16
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-92606a4bcfb26210a95a7f86b55fb258977f97c375cd3b1f6035ed81a53f2e2c.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-7a71bec90a568b0dbefc3d81206069d9759259460cffa0543b162f6835be1e9a.yml

src/onebusaway/_models.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -406,15 +406,6 @@ def build(
406406
return cast(_BaseModelT, construct_type(type_=base_model_cls, value=kwargs))
407407

408408

409-
def construct_type_unchecked(*, value: object, type_: type[_T]) -> _T:
410-
"""Loose coercion to the expected type with construction of nested values.
411-
412-
Note: the returned value from this function is not guaranteed to match the
413-
given type.
414-
"""
415-
return cast(_T, construct_type(value=value, type_=type_))
416-
417-
418409
def construct_type(*, value: object, type_: object) -> object:
419410
"""Loose coercion to the expected type with construction of nested values.
420411

src/onebusaway/types/vehicles_for_agency_list_response.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,16 @@ class VehiclesForAgencyListResponseDataList(BaseModel):
154154

155155
vehicle_id: str = FieldInfo(alias="vehicleId")
156156

157+
occupancy_capacity: Optional[int] = FieldInfo(alias="occupancyCapacity", default=None)
158+
159+
occupancy_count: Optional[int] = FieldInfo(alias="occupancyCount", default=None)
160+
161+
occupancy_status: Optional[str] = FieldInfo(alias="occupancyStatus", default=None)
162+
163+
phase: Optional[str] = None
164+
165+
status: Optional[str] = None
166+
157167

158168
class VehiclesForAgencyListResponseData(BaseModel):
159169
list: List[VehiclesForAgencyListResponseDataList]

0 commit comments

Comments
 (0)