pub fn validate(doc: &Value) -> Result<()>Expand description
Validate a parsed YAML document against the bundled JSON Schema.
The input must be a serde_json::Value representation of the raw policy.
Convert via serde_json::to_value(&raw_policy).
ยงErrors
Returns crate::Error::Schema if the document violates the bundled JSON Schema.