Skip to content

Commit

Permalink
chore(deps): Update pywr-v1-schema requirement from 0.14 to 0.15 (#250)
Browse files Browse the repository at this point in the history
* chore(deps): Update pywr-v1-schema requirement from 0.14 to 0.15

Updates the requirements on [pywr-v1-schema](https://github.com/pywr/pywr-schema) to permit the latest version.
- [Release notes](https://github.com/pywr/pywr-schema/releases)
- [Changelog](https://github.com/pywr/pywr-schema/blob/main/release-plz.toml)
- [Commits](pywr/pywr-schema@v0.14.0...v0.14.0)

---
updated-dependencies:
- dependency-name: pywr-v1-schema
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: Update path to v1 PywrSchemaError.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Tomlinson <[email protected]>
  • Loading branch information
dependabot[bot] and jetuk authored Sep 23, 2024
1 parent aeba898 commit 2b9b93e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ pyo3-log = "0.11"
tracing = { version = "0.1", features = ["log"] }
csv = "1.1"
hdf5 = { git = "https://github.com/aldanor/hdf5-rust.git", package = "hdf5", features = ["static", "zlib"] }
pywr-v1-schema = "0.14"
pywr-v1-schema = "0.15"
chrono = { version = "0.4.34", features = ["serde"] }
schemars = { version = "0.8.16", features = ["chrono"] }
2 changes: 1 addition & 1 deletion pywr-schema/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ impl PywrModel {
/// Convert a v1 JSON string to a v2 model.
///
/// See [`PywrModel::from_v1`] for more information.
pub fn from_v1_str(v1: &str) -> Result<(Self, Vec<ConversionError>), pywr_v1_schema::model::PywrSchemaError> {
pub fn from_v1_str(v1: &str) -> Result<(Self, Vec<ConversionError>), pywr_v1_schema::PywrSchemaError> {
let v1_model: pywr_v1_schema::PywrModel = serde_json::from_str(v1)?;

Ok(Self::from_v1(v1_model))
Expand Down

0 comments on commit 2b9b93e

Please sign in to comment.