{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opencaselaw-ch/json-schema/opencaselaw-ch-reflect-request-schema.json",
  "title": "ReflectRequest",
  "description": "Request body for the Pro \"Reflect\" feature.\n\nWhole-document scope: the lawyer points the add-in at their full\ndraft (motion, brief, memo, opinion) and gets back a brief\nliterary-philosophical mirror of the core legal issue. The Word\nadd-in's client-side redactor (>=v3) MUST run before sending —\nthe server-side guard refuses any payload whose structural-PII\nscan comes back non-empty.\n\nThe redacted whole-document budget is intentionally larger than\nthe per-paragraph Strengthen/Verify budgets: the Reflect prompt\nneeds enough context to identify the central issue, but is still\nbounded so a 60-page contract doesn't get sent verbatim.",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opencaselaw-ch-openapi.json#/components/schemas/ReflectRequest",
  "properties": {
    "license_key": {
      "type": "string",
      "title": "License Key"
    },
    "redacted_text": {
      "type": "string",
      "maxLength": 60000,
      "title": "Redacted Text"
    },
    "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",
    "redacted_text"
  ]
}