We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dfca35 commit cbbb845Copy full SHA for cbbb845
cedar-policy-core/src/tpe.rs
@@ -46,7 +46,17 @@ pub(crate) fn policy_expr_map<'a>(
46
if !p.is_static() {
47
return Err(NonstaticPolicyError.into());
48
}
49
+
50
let t = p.template();
51
52
+ let errs: Vec<_> = crate::validator::Validator::validate_entity_types(schema, t)
53
+ .chain(crate::validator::Validator::validate_enum_entity(schema, t))
54
+ .chain(crate::validator::Validator::validate_action_ids(schema, t))
55
+ .collect();
56
+ if !errs.is_empty() {
57
+ return Err(TPEError::Validation(errs));
58
+ }
59
60
match tc.typecheck_by_single_request_env(t, &env) {
61
PolicyCheck::Success(expr) => {
62
exprs.insert(p.id(), expr);
0 commit comments