diff --git a/cedar-drt/fuzz/fuzz_targets/convert-policy-json-to-cedar.rs b/cedar-drt/fuzz/fuzz_targets/convert-policy-json-to-cedar.rs index 458dff0e9..6c4ccdd17 100644 --- a/cedar-drt/fuzz/fuzz_targets/convert-policy-json-to-cedar.rs +++ b/cedar-drt/fuzz/fuzz_targets/convert-policy-json-to-cedar.rs @@ -30,7 +30,8 @@ enum ESTParseError { } fuzz_target!(|est_json_str: String| { - if let Ok(ast_from_est) = serde_json::from_str::(&est_json_str) + if let Ok(ast_from_est) = serde_json::from_str::(&est_json_str) + .and_then(|val| serde_json::from_value::(val)) .map_err(ESTParseError::from) .and_then(|est| { est.try_into_ast_template(Some(PolicyID::from_string("policy0")))