From 25f7d950cadcfecddaecc2f3ba5af99a0adde0bf Mon Sep 17 00:00:00 2001 From: Craig Disselkoen Date: Tue, 25 Feb 2025 12:33:55 -0800 Subject: [PATCH] renaming, inlining, and commenting in .proto files (#1488) Signed-off-by: Craig Disselkoen --- cedar-policy-core/src/ast/policy.rs | 11 +- cedar-policy/CHANGELOG.md | 3 + cedar-policy/protobuf_schema/core.proto | 140 +++++------ cedar-policy/protobuf_schema/validator.proto | 78 +++--- cedar-policy/src/proto/api.rs | 28 +-- cedar-policy/src/proto/ast.rs | 101 ++------ cedar-policy/src/proto/policy.rs | 191 +++++++-------- cedar-policy/src/proto/validator.rs | 235 ++++++------------- 8 files changed, 318 insertions(+), 469 deletions(-) diff --git a/cedar-policy-core/src/ast/policy.rs b/cedar-policy-core/src/ast/policy.rs index 6e2b83ab0..6d1791ce1 100644 --- a/cedar-policy-core/src/ast/policy.rs +++ b/cedar-policy-core/src/ast/policy.rs @@ -355,9 +355,9 @@ fn describe_arity_error( } /// A Policy that contains: -/// a pointer to its template -/// an link ID (unless it's an static policy) -/// the bound values for slots in the template +/// - a pointer to its template +/// - a link ID (unless it's a static policy) +/// - the bound values for slots in the template /// /// Policies are not serializable (due to the pointer), and can be serialized /// by converting to/from LiteralPolicy @@ -366,10 +366,12 @@ pub struct Policy { /// Reference to the template template: Arc