{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudmersive/json-schema/cloudmersive-document-policy-result-schema.json",
  "title": "DocumentPolicyResult",
  "description": "Result of performing a document policy enforcement operation",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudmersive-analyze-api-openapi.yml#/components/schemas/DocumentPolicyResult",
  "type": "object",
  "properties": {
    "CleanResult": {
      "description": "True if the document complies with all of the policies, and false if it does not",
      "type": "boolean"
    },
    "RiskScore": {
      "format": "double",
      "description": "Risk score between 0.0 and 1.0 where values above 0.5 are increasing levels of risk",
      "type": "number"
    },
    "RuleViolations": {
      "description": "Policy violations",
      "type": "array",
      "items": {
        "$ref": "#/$defs/PolicyRuleViolation"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "PolicyRuleViolation": {
      "description": "Instances of a policy rule violation",
      "type": "object",
      "properties": {
        "RuleId": {
          "description": "ID of the rule; if no ID was supplied, the ID is the 1-based index of the rule",
          "type": "string"
        },
        "RuleViolationRiskScore": {
          "format": "double",
          "description": "Risk score between 0.0 and 1.0 where values above 0.5 are increasing levels of risk",
          "type": "number"
        },
        "RuleViolationRationale": {
          "description": "AI natural language rationale for why this policy was violated",
          "type": "string"
        }
      },
      "additionalProperties": false
    }
  }
}