Skip to content

Commit

Permalink
reword compiler strict mode section
Browse files Browse the repository at this point in the history
Signed-off-by: Ashutosh Narkar <[email protected]>
  • Loading branch information
ashutosh-narkar committed Dec 4, 2024
1 parent 6f8aa58 commit 116e962
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions docs/content/policy-language.md
Original file line number Diff line number Diff line change
Expand Up @@ -3661,19 +3661,9 @@ For a reference on JSON Schema please see: <http://json-schema.org/understanding

For a tool that generates JSON Schema from JSON samples, please see: <https://jsonschema.net/home>

## 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
--- |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 116e962

Please sign in to comment.