Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conform to OPA 0.61.0. #118

Merged
merged 1 commit into from
Feb 1, 2024
Merged

Conform to OPA 0.61.0. #118

merged 1 commit into from
Feb 1, 2024

Conversation

anakrish
Copy link
Collaborator

@anakrish anakrish commented Feb 1, 2024

Implement import rego.v1
https://www.openpolicyagent.org/docs/latest/policy-language/#the-regov1-import

  • if required before rule body
  • import rego.v1 automatically imports future.keywords
  • handle import shadowing
  • data, input cannot be shadowed
  • deprecated functions as disallowed
  • rules must have assignment or body
  • contains required for parital set

Implement `import rego.v1`
https://www.openpolicyagent.org/docs/latest/policy-language/#the-regov1-import

- `if` required before rule body
- import rego.v1 automatically imports future.keywords
- handle import shadowing
- data, input cannot be shadowed
- deprecated functions as disallowed
- rules must have assignment or body
- `contains` required for parital set

Signed-off-by: Anand Krishnamoorthi <[email protected]>
@anakrish anakrish merged commit beea227 into microsoft:main Feb 1, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant