{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/antfly/json-schema/antfly-resolver-merge-request-schema.json",
  "title": "ResolverMergeRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/antfly-resolver-curation-api-openapi.yml#/components/schemas/ResolverMergeRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "from",
    "to"
  ],
  "properties": {
    "actor": {
      "type": "string",
      "maxLength": 256
    },
    "reason": {
      "type": "string",
      "maxLength": 4096
    },
    "from": {
      "type": "string",
      "minLength": 1,
      "maxLength": 16384
    },
    "to": {
      "type": "string",
      "minLength": 1,
      "maxLength": 16384
    },
    "replace": {
      "type": "boolean",
      "default": false
    },
    "pin_distinct": {
      "type": "boolean",
      "default": false,
      "description": "Pin the replaced former target distinct. Requires an existing different redirect and replace=true."
    },
    "expected_revision": {
      "type": "integer",
      "format": "uint64",
      "minimum": 0,
      "x-go-type-skip-optional-pointer": false,
      "description": "Optional revision fence. Explicit zero fences the first edit; omission disables the fence."
    },
    "wait": {
      "$ref": "#/$defs/ResolverWait"
    }
  },
  "$defs": {
    "ResolverWait": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "timeout_ms": {
          "type": "integer",
          "format": "uint32",
          "minimum": 1,
          "maximum": 300000,
          "default": 1000
        }
      },
      "description": "Wait for observed replay completion up to this timeout. A timeout returns accepted state with applied=false; it does not undo the mutation."
    }
  }
}