Skip to content

Commit

Permalink
Check equivalence of tags in schemas (#463)
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 Nov 5, 2024
1 parent 4d2519b commit 208eb14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cedar-drt/fuzz/src/schemas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ impl<N: Clone + PartialEq + Debug + Display + TypeName + Ord> Equiv for json_sch
&rhs.member_of_types.iter().collect::<BTreeSet<_>>(),
)
.map_err(|e| format!("memberOfTypes are not equal: {e}"))?;
Equiv::equiv(&lhs.shape, &rhs.shape).map_err(|e| format!("mismatched types: {e}"))
Equiv::equiv(&lhs.shape, &rhs.shape).map_err(|e| format!("mismatched types: {e}"))?;
Equiv::equiv(&lhs.tags, &rhs.tags).map_err(|msg| format!("mismatched entity tags: {msg}"))
}
}

Expand Down

0 comments on commit 208eb14

Please sign in to comment.