Skip to content

Commit d4367ba

Browse files
Merge pull request #19 from OneBusAway/release-please--branches--main--changes--next
release: 0.1.0-alpha.5
2 parents 8d56083 + e1a19e7 commit d4367ba

File tree

11 files changed

+23
-20
lines changed

11 files changed

+23
-20
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.4"
2+
".": "0.1.0-alpha.5"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 15
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-735f145c4ce18bd5a2c869289186f175513bfa496507de7ff0734f9242adf427.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-ac10a054ead5e711bd033b417891c1769d631135029ca5bd91e6584420403ee2.yml

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.1.0-alpha.5 (2024-07-28)
4+
5+
Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/OneBusAway/python-sdk/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
6+
7+
### Features
8+
9+
* **api:** OpenAPI spec update via Stainless API ([#18](https://github.com/OneBusAway/python-sdk/issues/18)) ([e209b47](https://github.com/OneBusAway/python-sdk/commit/e209b47d717f9ad08a688587b1bae46cb71fab54))
10+
311
## 0.1.0-alpha.4 (2024-07-27)
412

513
Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/OneBusAway/python-sdk/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)

examples/agency.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
import onebusaway
42

53

@@ -12,5 +10,6 @@ def main_sync() -> None:
1210
else:
1311
print("Agency data or entry is None.")
1412

13+
1514
if __name__ == "__main__":
1615
main_sync()

examples/stop.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
import onebusaway
42

53

@@ -12,5 +10,6 @@ def main_sync() -> None:
1210
else:
1311
print("stop not found")
1412

13+
1514
if __name__ == "__main__":
1615
main_sync()

examples/stop_ids_for_agency.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
2-
31
import onebusaway
42

53

64
def main_sync() -> None:
75
client = onebusaway.OnebusawaySDK(api_key="TEST")
8-
agency_id = "40";
6+
agency_id = "40"
97
stop_ids = client.stop_ids_for_agency.list(agency_id)
10-
if stop_ids.data:
8+
if stop_ids.data and stop_ids.data.list is not None:
119
for stop_id in stop_ids.data.list:
1210
print(stop_id)
1311

examples/trip.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
2-
31
import onebusaway
42

53

64
def main_sync() -> None:
75
client = onebusaway.OnebusawaySDK(api_key="TEST")
86

9-
trip_id = '40_608344966'
7+
trip_id = "40_608344966"
108
trip = client.trip.retrieve(trip_id)
119

1210
if trip.data and trip.data.entry:
1311
print(trip.data.entry)
1412
else:
1513
print("trip data or entry is None.")
1614

15+
1716
if __name__ == "__main__":
1817
main_sync()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "onebusaway"
3-
version = "0.1.0-alpha.4"
3+
version = "0.1.0-alpha.5"
44
description = "The official Python library for the onebusaway-sdk API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/onebusaway/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "onebusaway"
4-
__version__ = "0.1.0-alpha.4" # x-release-please-version
4+
__version__ = "0.1.0-alpha.5" # x-release-please-version

src/onebusaway/types/stop_ids_for_agency_list_response.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212

1313

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

17-
references: References
17+
list: Optional[List[str]] = None
1818

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

2121

2222
class StopIDsForAgencyListResponse(ResponseWrapper):

0 commit comments

Comments
 (0)