fix: update Functions deserialization logic and add run.bat script

This commit is contained in:
DamonXue
2025-03-01 17:27:07 +08:00
parent 5988606410
commit 442c618013
2 changed files with 35 additions and 3 deletions
+3 -3
View File
@@ -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": {