{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fluree/json-schema/fluree-get-merge-preview-ledgername-response-schema.json",
  "title": "GetMergePreviewLedgernameResponse",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/fluree-openapi-generated.yml#/components/schemas/GetMergePreviewLedgernameResponse",
  "type": "object",
  "properties": {
    "source": {
      "type": "string",
      "description": "Source branch."
    },
    "target": {
      "type": "string",
      "description": "Target branch."
    },
    "ancestor": {
      "type": "object",
      "description": "Commit ID and transaction time of common ancestor."
    },
    "ahead": {
      "type": "object",
      "description": "Summary of source‑side commits ahead of ancestor."
    },
    "behind": {
      "type": "object",
      "description": "Summary of target‑side commits behind ancestor."
    },
    "conflict_keys": {
      "type": "array",
      "description": "List of keys with conflicts (if included)."
    },
    "fast_forward": {
      "type": "boolean",
      "description": "Whether a fast‑forward merge is possible."
    },
    "validation": {
      "type": "object",
      "description": "Result of staging and validating the change set (if requested)."
    }
  }
}