{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opencaselaw-ch/json-schema/opencaselaw-ch-attest-body-schema.json",
  "title": "_AttestBody",
  "description": "Pro /attest body. The Word add-in (>=v3 redactor) sends\n``redacted_text``. Older clients sent ``draft_text``; both are\naccepted for a transition window. The server-side redaction guard\nruns against whichever field was supplied, so a missed redaction\nis caught either way.",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opencaselaw-ch-openapi.json#/components/schemas/_AttestBody",
  "properties": {
    "redacted_text": {
      "title": "Redacted Text",
      "type": [
        "string",
        "null"
      ]
    },
    "draft_text": {
      "title": "Draft Text",
      "type": [
        "string",
        "null"
      ]
    },
    "audit_grounding": {
      "type": "boolean",
      "title": "Audit Grounding",
      "default": false
    },
    "audit_quotes": {
      "type": "boolean",
      "title": "Audit Quotes",
      "default": false
    },
    "client_redactor_version": {
      "title": "Client Redactor Version",
      "type": [
        "string",
        "null"
      ]
    },
    "client_redactor_summary": {
      "title": "Client Redactor Summary",
      "additionalProperties": true,
      "type": [
        "object",
        "null"
      ]
    }
  },
  "type": "object"
}