Skip to content

Commit

Permalink
Compare tags in ValidatorEntityType (#523)
Browse files Browse the repository at this point in the history
Signed-off-by: Shaobo He <shaobohe@amazon.com>
  • Loading branch information
shaobo-he-aws authored Feb 3, 2025
1 parent 87264a4 commit 7e2d4b8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cedar-drt/fuzz/src/schemas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,13 @@ impl Equiv for cedar_policy_validator::ValidatorEntityType {
&lhs.attributes().collect::<HashMap<_, _>>(),
&rhs.attributes().collect::<HashMap<_, _>>(),
)?;
if lhs.tag_type() != rhs.tag_type() {
return Err(format!(
"encountered different tags types: {:?} and {:?}",
lhs.tag_type(),
rhs.tag_type()
));
}
Ok(())
}
}
Expand Down

0 comments on commit 7e2d4b8

Please sign in to comment.