Skip to content

Commit b6af3b2

Browse files
Merge pull request #21 from ciaranmccormick/feature/item-identifier-bug
Make ItemIdentifier an optional attribute
2 parents 9ed61eb + fa7feb2 commit b6af3b2

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
We follow [Semantic Versions](https://semver.org/).
44

5+
## Version 0.7.1
6+
7+
- Make item_identifier optional in the SIRI VM model
8+
59
## Version 0.7.0
610

711
- Added `Siri` model to parse SIRI-VM responses from BODS

bods_client/models/siri.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def from_lxml_element(cls, element: _Element) -> "MonitoredVehicleJourney":
100100

101101
class VehicleActivity(BaseModel):
102102
recorded_at_time: datetime
103-
item_identifier: str
103+
item_identifier: Optional[str]
104104
valid_until_time: datetime
105105
monitored_vehicle_journey: MonitoredVehicleJourney
106106

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "poetry.core.masonry.api"
66
[tool.poetry]
77
name = "bods-client"
88
description = "A Python client for the Department for Transport Bus Open Data Service API"
9-
version = "0.7.0"
9+
version = "0.7.1"
1010
license = "MIT"
1111

1212
authors = ["Ciaran McCormick"]

0 commit comments

Comments
 (0)