diff --git a/CHANGELOG.md b/CHANGELOG.md index 3dd8d15..5242f5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [2.2.1](https://github.com/ocni-dtu/lcax/compare/v2.2.0...v2.2.1) (2024-06-05) + +### Bug Fixes + +* naming fix to Transport ([fd17d3d](https://github.com/ocni-dtu/lcax/commit/fd17d3daf852f3e073bb327528a5f473e630f673)) + ## [2.2.0](https://github.com/ocni-dtu/lcax/compare/v2.1.2...v2.2.0) (2024-06-05) ### Features diff --git a/Cargo.lock b/Cargo.lock index facb43b..a1492d2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -365,7 +365,7 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "lcax" -version = "2.2.0" +version = "2.2.1" dependencies = [ "console_error_panic_hook", "getrandom", @@ -384,7 +384,7 @@ dependencies = [ [[package]] name = "lcax_convert" -version = "2.2.0" +version = "2.2.1" dependencies = [ "bytes", "chrono", @@ -400,7 +400,7 @@ dependencies = [ [[package]] name = "lcax_core" -version = "2.2.0" +version = "2.2.1" dependencies = [ "chrono", "pkg-version", @@ -412,7 +412,7 @@ dependencies = [ [[package]] name = "lcax_models" -version = "2.2.0" +version = "2.2.1" dependencies = [ "chrono", "console_error_panic_hook", diff --git a/Cargo.toml b/Cargo.toml index c392d65..8cd901c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ resolver = "2" [workspace.package] description = "LCAx is an open, machine and human-readable data format for exchanging LCA results." -version = "2.2.0" +version = "2.2.1" authors = ["Christian Kongsgaard "] edition = "2021" readme = "README.md" diff --git a/packages/python/src/lcax/pydantic.py b/packages/python/src/lcax/pydantic.py index 8d7b709..eec433e 100644 --- a/packages/python/src/lcax/pydantic.py +++ b/packages/python/src/lcax/pydantic.py @@ -623,11 +623,11 @@ class Transport(BaseModel): distance: float distance_unit: Unit = Field(..., alias='distanceUnit') id: str - impact_categories: List[ImpactCategoryKey] = Field(..., alias='impactCategories') - name: str - transport_epd: Union[ImpactDataSource1, ImpactDataSource2, ImpactDataSource3] = ( - Field(..., alias='transportEpd') + impact_data: Union[ImpactDataSource1, ImpactDataSource2, ImpactDataSource3] = Field( + ..., alias='impactData' ) + life_cycle_stages: List[LifeCycleStage] = Field(..., alias='lifeCycleStages') + name: str class Product(BaseModel):