{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opencaselaw-ch/json-schema/opencaselaw-ch-verify-request-schema.json",
  "title": "VerifyRequest",
  "description": "Request body for Pro reference verification.\n\nThe Word add-in (>=v3 redactor) sends ``redacted_text``. Older\nclients sent ``selected_text`` — both are accepted during the\ntransition window. The server-side redaction guard runs against\nwhichever field was supplied so a missed redaction is caught\neither way; the field name is just a documentation hint to\nAppSource reviewers / security auditors that the contract is\n\"this text is already redacted client-side\".",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opencaselaw-ch-openapi.json#/components/schemas/VerifyRequest",
  "properties": {
    "license_key": {
      "type": "string",
      "title": "License Key"
    },
    "redacted_text": {
      "title": "Redacted Text",
      "type": [
        "string",
        "null"
      ],
      "maxLength": 5000
    },
    "selected_text": {
      "title": "Selected Text",
      "type": [
        "string",
        "null"
      ],
      "maxLength": 5000
    },
    "case_ref": {
      "type": "string",
      "maxLength": 200,
      "title": "Case Ref"
    },
    "lang": {
      "type": "string",
      "title": "Lang",
      "default": "de"
    },
    "client_redactor_version": {
      "title": "Client Redactor Version",
      "type": [
        "string",
        "null"
      ]
    },
    "client_redactor_summary": {
      "title": "Client Redactor Summary",
      "additionalProperties": true,
      "type": [
        "object",
        "null"
      ]
    }
  },
  "type": "object",
  "required": [
    "license_key",
    "case_ref"
  ]
}