From 116e96297151c724222bac6d041f1a4f43ec966e Mon Sep 17 00:00:00 2001 From: Ashutosh Narkar Date: Tue, 3 Dec 2024 18:29:25 -0800 Subject: [PATCH] reword compiler strict mode section Signed-off-by: Ashutosh Narkar --- docs/content/policy-language.md | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/docs/content/policy-language.md b/docs/content/policy-language.md index 06092971397..972373ca574 100644 --- a/docs/content/policy-language.md +++ b/docs/content/policy-language.md @@ -3661,19 +3661,9 @@ For a reference on JSON Schema please see: -## Strict Mode +## Compilation Constraints and Checks -The Rego compiler supports `strict mode`, where additional constraints and safety checks are enforced during compilation. -Compiler rules that will be enforced by future versions of OPA, but will be a breaking change once introduced, are incubated in strict mode. -This creates an opportunity for users to verify that their policies are compatible with the next version of OPA before upgrading. - -Compiler Strict mode is supported by the `check` command, and can be enabled through the `--strict`/`-S` flag. - -``` --S, --strict enable compiler strict mode -``` - -### Strict Mode Constraints and Checks +Below constraints and safety checks are enforced by default during compilation: Name | Description --- |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------