mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-20 11:32:19 +00:00
fix: update Functions deserialization logic and add run.bat script
This commit is contained in:
@@ -131,9 +131,9 @@ impl<'de> Deserialize<'de> for Functions {
|
||||
}
|
||||
}
|
||||
|
||||
if inner_data.is_empty() {
|
||||
/* if inner_data.is_empty() {
|
||||
return Err(Error::custom("has no condition element"));
|
||||
}
|
||||
} */
|
||||
|
||||
Ok(inner_data)
|
||||
}
|
||||
@@ -180,7 +180,7 @@ mod tests {
|
||||
"s3:x-amz-server-side-encryption-customer-algorithm": "true"
|
||||
}
|
||||
}"# => false; "1")]
|
||||
#[test_case(r#"{}"# => false; "2")]
|
||||
#[test_case(r#"{}"# => true; "2")]
|
||||
#[test_case(
|
||||
r#"{
|
||||
"StringLike": {
|
||||
|
||||
Reference in New Issue
Block a user