Add `rego.v2` directive `import`
Author: johanfyllingCreated Sep 17, 2026Updated Sep 18, 2026
Labelsauthoring
Add the rego.v2 Rego import alongside the existing rego.v1. Importing it in a module applies the Rego v2 language definition to the active module (modules within the same compile set without the import are unaffected).
The Rego v2 language definition contains:
import future.keywords.andimport future.keywords.orimport future.keywords.not
and nothing else; no additional semantics or strictness checks.
Source: open-policy-agent/opa