mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
0e69dbba20
The schema of the input document for the authorization policy is known to OPA. This feature leverages that to perform automatic type checking on the authorization policy. The checks happen on policies provided to OPA on start-up and also those provided via bundles. This check is enabled by default and can be disabled using the `--skip-known-schema-check` flag on `opa run`. This feature will help catch errors such as typos, mismatch types etc. in these policies and provide precise feedback to the policy author. Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>