diff --git a/Cargo.toml b/Cargo.toml index 23513cb5..3bbbf971 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] } diff --git a/pywr-schema/src/model.rs b/pywr-schema/src/model.rs index c6921a56..5d4abaec 100644 --- a/pywr-schema/src/model.rs +++ b/pywr-schema/src/model.rs @@ -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), pywr_v1_schema::model::PywrSchemaError> { + pub fn from_v1_str(v1: &str) -> Result<(Self, Vec), pywr_v1_schema::PywrSchemaError> { let v1_model: pywr_v1_schema::PywrModel = serde_json::from_str(v1)?; Ok(Self::from_v1(v1_model))