From 75be4e07682fd296ee3bd422e21008591e202e0f Mon Sep 17 00:00:00 2001 From: Ashutosh Narkar Date: Mon, 19 Aug 2024 15:00:13 -0700 Subject: [PATCH] ast: Update Rego version desc to indicate RegoV1 is the default Signed-off-by: Ashutosh Narkar --- ast/parser.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ast/parser.go b/ast/parser.go index 388e5e5926..2beaaec70d 100644 --- a/ast/parser.go +++ b/ast/parser.go @@ -31,15 +31,12 @@ var RegoV1CompatibleRef = Ref{VarTerm("rego"), StringTerm("v1")} type RegoVersion int const ( - // RegoV0 is the default, original Rego syntax. + // RegoV0 is the original Rego syntax enforced pre-OPA 1.0 RegoV0 RegoVersion = iota // RegoV0CompatV1 requires modules to comply with both the RegoV0 and RegoV1 syntax (as when 'rego.v1' is imported in a module). // Shortly, RegoV1 compatibility is required, but 'rego.v1' or 'future.keywords' must also be imported. RegoV0CompatV1 - // RegoV1 is the Rego syntax enforced by OPA 1.0; e.g.: - // future.keywords part of default keyword set, and don't require imports; - // 'if' and 'contains' required in rule heads; - // (some) strict checks on by default. + // RegoV1 is the default; it's the Rego syntax enforced by OPA 1.0 RegoV1 )