{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/medianfi-com/json-schema/medianfi-com-data-repair-request-schema.json",
  "title": "DataRepairRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/medianfi-com-admin-api-openapi.yml#/components/schemas/DataRepairRequest",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "companyId": {
      "type": "string",
      "format": "uuid",
      "description": "Scope. Omitted = fleet-wide, which is allowed for dry-run only."
    },
    "apply": {
      "type": "boolean",
      "default": false,
      "description": "false = dry-run; report proposals, touch nothing."
    },
    "confirm": {
      "type": "string",
      "maxLength": 200,
      "description": "Must be exactly `REPAIR <companyId>` when apply is true."
    },
    "maxActions": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200,
      "default": 50,
      "description": "Cap on void operations per request. Selection excludes already-voided rows — repeat until the ledger reports zero remaining.\n"
    }
  }
}