File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ features = ["full", "aide"]
27
27
[dependencies ]
28
28
axum = { version = " 0.7.3" , default-features = false }
29
29
garde = { version = " 0.18.0" , optional = true }
30
- validator = { version = " 0.17 .0" , optional = true }
30
+ validator = { version = " 0.18 .0" , optional = true }
31
31
validify = { version = " 1.3.0" , optional = true }
32
32
33
33
[dependencies .axum-extra ]
@@ -57,7 +57,7 @@ axum = { version = "0.7.1", features = ["macros"] }
57
57
tokio = { version = " 1.34.0" , features = [" full" ] }
58
58
reqwest = { version = " 0.11.23" , features = [" json" , " multipart" ] }
59
59
serde = { version = " 1.0.195" , features = [" derive" ] }
60
- validator = { version = " 0.17 .0" , features = [" derive" ] }
60
+ validator = { version = " 0.18 .0" , features = [" derive" ] }
61
61
garde = { version = " 0.18.0" , features = [" serde" , " derive" ] }
62
62
serde_json = " 1.0.108"
63
63
serde_yaml = " 0.9.27"
Original file line number Diff line number Diff line change @@ -252,8 +252,8 @@ pub mod tests {
252
252
assert_eq ! ( & inner, v. deref( ) ) ;
253
253
assert_eq ! ( inner, v. into_inner( ) ) ;
254
254
255
- fn validate ( v : & i32 , args : & DataVA ) -> Result < ( ) , ValidationError > {
256
- assert ! ( * v < args. a) ;
255
+ fn validate ( v : i32 , args : & DataVA ) -> Result < ( ) , ValidationError > {
256
+ assert ! ( v < args. a) ;
257
257
Ok ( ( ) )
258
258
}
259
259
Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ pub struct ParametersEx {
47
47
v1 : String ,
48
48
}
49
49
50
- fn validate_v0 ( v : & i32 , args : & ParametersExValidationArguments ) -> Result < ( ) , ValidationError > {
50
+ fn validate_v0 ( v : i32 , args : & ParametersExValidationArguments ) -> Result < ( ) , ValidationError > {
51
51
args. inner
52
52
. v0_range
53
- . contains ( v)
53
+ . contains ( & v)
54
54
. then_some ( ( ) )
55
55
. ok_or_else ( || ValidationError :: new ( "v0 is out of range" ) )
56
56
}
@@ -1208,11 +1208,11 @@ mod extra_typed_path {
1208
1208
}
1209
1209
1210
1210
fn validate_v0 (
1211
- v : & i32 ,
1211
+ v : i32 ,
1212
1212
args : & TypedPathParamExValidationArguments ,
1213
1213
) -> Result < ( ) , ValidationError > {
1214
1214
args. v0_range
1215
- . contains ( v)
1215
+ . contains ( & v)
1216
1216
. then_some ( ( ) )
1217
1217
. ok_or_else ( || ValidationError :: new ( "v0 is out of range" ) )
1218
1218
}
You can’t perform that action at this time.
0 commit comments