Skip to main content

E1201. Policy file failed validation

Severity: ERROR. Class: PolicyValidationError (subclass of ValueError).

What happened

The local policy file (controlzero.yaml or controlzero.json) does not conform to the policy schema. See the error list immediately above this code in the message for which fields are wrong.

How to fix

Run controlzero validate <file> to get the same errors formatted as a checklist. Or open the file in your editor and fix the fields. The validator includes the rule index (rules[3]: ...) and a did-you-mean hint for misspelled keys.

See also