deps: upgrade garde to 0.18.0
This commit is contained in:
10
CHANGELOG.md
10
CHANGELOG.md
@@ -8,6 +8,16 @@
|
|||||||
|
|
||||||
### Fixed
|
### 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)
|
## axum-valid 0.14.0 (2024-01-06)
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "axum-valid"
|
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."
|
description = "Provides validation extractors for your Axum application, allowing you to validate data using validator, garde, validify or all of them."
|
||||||
authors = ["GengTeng <me@gteng.org>"]
|
authors = ["GengTeng <me@gteng.org>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
@@ -26,7 +26,7 @@ features = ["full", "aide"]
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
axum = { version = "0.7.3", default-features = false }
|
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}
|
validator = { version = "0.16.1", optional = true}
|
||||||
validify = { version = "1.3.0", 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"] }
|
reqwest = { version = "0.11.23", features = ["json", "multipart"] }
|
||||||
serde = { version = "1.0.195", features = ["derive"] }
|
serde = { version = "1.0.195", features = ["derive"] }
|
||||||
validator = { version = "0.16.1", features = ["derive"] }
|
validator = { version = "0.16.1", features = ["derive"] }
|
||||||
|
garde = { version = "0.18.0", features = ["serde", "derive"] }
|
||||||
serde_json = "1.0.108"
|
serde_json = "1.0.108"
|
||||||
serde_yaml = "0.9.27"
|
serde_yaml = "0.9.27"
|
||||||
quick-xml = { version = "0.31.0", features = ["serialize"] }
|
quick-xml = { version = "0.31.0", features = ["serialize"] }
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ In case of inner extractor errors, it will first return the Rejection from the i
|
|||||||
* Install
|
* Install
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
cargo add garde
|
cargo add garde --features derive
|
||||||
cargo add axum-valid --features garde,basic --no-default-features
|
cargo add axum-valid --features garde,basic --no-default-features
|
||||||
# excluding validator
|
# excluding validator
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ where
|
|||||||
State: Send + Sync,
|
State: Send + Sync,
|
||||||
Context: Send + Sync + FromRef<State>,
|
Context: Send + Sync + FromRef<State>,
|
||||||
Extractor: HasValidate + FromRequest<State>,
|
Extractor: HasValidate + FromRequest<State>,
|
||||||
<Extractor as HasValidate>::Validate: garde::Validate<Context = Context>,
|
<Extractor as HasValidate>::Validate: Validate<Context = Context>,
|
||||||
{
|
{
|
||||||
type Rejection = GardeRejection<<Extractor as FromRequest<State>>::Rejection>;
|
type Rejection = GardeRejection<<Extractor as FromRequest<State>>::Rejection>;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user