{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudmersive/json-schema/cloudmersive-document-policy-request-schema.json",
  "title": "DocumentPolicyRequest",
  "description": "Request to analyze a document",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudmersive-analyze-api-openapi.yml#/components/schemas/DocumentPolicyRequest",
  "type": "object",
  "properties": {
    "InputFile": {
      "format": "byte",
      "description": "Input file as a byte array",
      "type": "string"
    },
    "Rules": {
      "description": "Rules to apply to the document",
      "type": "array",
      "items": {
        "$ref": "#/$defs/PolicyRule"
      }
    },
    "RecognitionMode": {
      "description": "Optional; Recognition mode - Normal (default) provides the highest accuracy but slower speed, FastPlus provides even faster processing at somewhat reduced accuracy, Fast provides faster processing at reduced accuracy, and FastMini provides the fastest processing at significantly reduced accuracy",
      "type": "string"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "PolicyRule": {
      "type": "object",
      "properties": {
        "RuleId": {
          "description": "",
          "type": "string"
        },
        "RuleType": {
          "description": "Possible values are ALLOW and DENY",
          "type": "string"
        },
        "RuleDescription": {
          "description": "Description of the rule in natural language, e.g. Do not allow documents that contain offensive language",
          "type": "string"
        }
      },
      "additionalProperties": false
    }
  }
}