diff --git a/CHANGELOG.md b/CHANGELOG.md index 8634883..d441397 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,16 @@ ### Fixed +## axum-valid 0.15.0 (2024-02-01) + +### Added + +### Changed + +* Upgrade garde to 0.18.0. + +### Fixed + ## axum-valid 0.14.0 (2024-01-06) ### Added diff --git a/Cargo.toml b/Cargo.toml index 8ff91fd..7405104 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "axum-valid" -version = "0.14.0" +version = "0.15.0" description = "Provides validation extractors for your Axum application, allowing you to validate data using validator, garde, validify or all of them." authors = ["GengTeng "] license = "MIT" @@ -26,7 +26,7 @@ features = ["full", "aide"] [dependencies] axum = { version = "0.7.3", default-features = false } -garde = { version = "0.17.0", optional = true } +garde = { version = "0.18.0", optional = true } validator = { version = "0.16.1", optional = true} validify = { version = "1.3.0", optional = true} @@ -59,6 +59,7 @@ hyper = { version = "0.14.27", features = ["full"] } reqwest = { version = "0.11.23", features = ["json", "multipart"] } serde = { version = "1.0.195", features = ["derive"] } validator = { version = "0.16.1", features = ["derive"] } +garde = { version = "0.18.0", features = ["serde", "derive"] } serde_json = "1.0.108" serde_yaml = "0.9.27" quick-xml = { version = "0.31.0", features = ["serialize"] } diff --git a/README.md b/README.md index d9e3a2c..2dd74cd 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ In case of inner extractor errors, it will first return the Rejection from the i * Install ```shell -cargo add garde +cargo add garde --features derive cargo add axum-valid --features garde,basic --no-default-features # excluding validator ``` diff --git a/src/garde.rs b/src/garde.rs index 46b9f30..8b4c903 100644 --- a/src/garde.rs +++ b/src/garde.rs @@ -83,7 +83,7 @@ where State: Send + Sync, Context: Send + Sync + FromRef, Extractor: HasValidate + FromRequest, - ::Validate: garde::Validate, + ::Validate: Validate, { type Rejection = GardeRejection<>::Rejection>;