{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-codecommit/json-schema/amazon-codecommit-get-merge-conflicts-output-schema.json",
  "title": "GetMergeConflictsOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-codecommit-merge-conflict-api-openapi.yml#/components/schemas/GetMergeConflictsOutput",
  "type": "object",
  "properties": {
    "mergeable": {
      "type": "boolean",
      "description": "A Boolean value that indicates whether the code is mergeable by the specified merge option."
    },
    "destinationCommitId": {
      "type": "string",
      "description": "The commit ID of the destination commit specifier that was used in the merge evaluation."
    },
    "sourceCommitId": {
      "type": "string",
      "description": "The commit ID of the source commit specifier that was used in the merge evaluation."
    },
    "baseCommitId": {
      "type": "string",
      "description": "The commit ID of the merge base."
    },
    "conflictMetadataList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ConflictMetadata"
      },
      "description": "A list of metadata for any conflicting files. If the specified merge strategy is FAST_FORWARD_MERGE, this list is always empty."
    },
    "nextToken": {
      "type": "string",
      "description": "An enumeration token that can be used in a request to return the next batch of the results."
    }
  },
  "required": [
    "mergeable",
    "destinationCommitId",
    "sourceCommitId",
    "conflictMetadataList"
  ],
  "$defs": {
    "ConflictMetadata": {
      "type": "object",
      "properties": {
        "filePath": {
          "type": "string",
          "description": "The path of the file that contains conflicts."
        },
        "fileSizes": {
          "$ref": "#/$defs/FileSizes"
        },
        "fileModes": {
          "$ref": "#/$defs/FileModes"
        },
        "objectTypes": {
          "$ref": "#/$defs/ObjectTypes"
        },
        "numberOfConflicts": {
          "type": "integer",
          "description": "The number of conflicts, including both hunk conflicts and metadata conflicts."
        },
        "isBinaryFile": {
          "$ref": "#/$defs/IsBinaryFile"
        },
        "contentConflict": {
          "type": "boolean",
          "description": "A boolean value indicating whether there are conflicts in the content of a file."
        },
        "fileModeConflict": {
          "type": "boolean",
          "description": "A boolean value indicating whether there are conflicts in the file mode of a file."
        },
        "objectTypeConflict": {
          "type": "boolean",
          "description": "A boolean value (true or false) indicating whether there are conflicts between the branches in the object type of a file, folder, or submodule."
        },
        "mergeOperations": {
          "$ref": "#/$defs/MergeOperations"
        }
      }
    },
    "FileModes": {
      "type": "object",
      "properties": {
        "source": {
          "type": "string",
          "enum": [
            "EXECUTABLE",
            "NORMAL",
            "SYMLINK"
          ],
          "description": "The file mode of a file in the source of a merge or pull request."
        },
        "destination": {
          "type": "string",
          "enum": [
            "EXECUTABLE",
            "NORMAL",
            "SYMLINK"
          ],
          "description": "The file mode of a file in the destination of a merge or pull request."
        },
        "base": {
          "type": "string",
          "enum": [
            "EXECUTABLE",
            "NORMAL",
            "SYMLINK"
          ],
          "description": "The file mode of a file in the base of a merge or pull request."
        }
      }
    },
    "FileSizes": {
      "type": "object",
      "properties": {
        "source": {
          "type": "integer",
          "description": "The size of a file in the source of a merge or pull request."
        },
        "destination": {
          "type": "integer",
          "description": "The size of a file in the destination of a merge or pull request."
        },
        "base": {
          "type": "integer",
          "description": "The size of a file in the base of a merge or pull request."
        }
      }
    },
    "IsBinaryFile": {
      "type": "object",
      "properties": {
        "source": {
          "type": "boolean",
          "description": "The binary or non-binary status of file in the source of a merge or pull request."
        },
        "destination": {
          "type": "boolean",
          "description": "The binary or non-binary status of a file in the destination of a merge or pull request."
        },
        "base": {
          "type": "boolean",
          "description": "The binary or non-binary status of a file in the base of a merge or pull request."
        }
      }
    },
    "MergeOperations": {
      "type": "object",
      "properties": {
        "source": {
          "type": "string",
          "enum": [
            "A",
            "M",
            "D"
          ],
          "description": "The operation (add, modify, or delete) on a file in the source of a merge or pull request."
        },
        "destination": {
          "type": "string",
          "enum": [
            "A",
            "M",
            "D"
          ],
          "description": "The operation on a file in the destination of a merge or pull request."
        }
      }
    },
    "ObjectTypes": {
      "type": "object",
      "properties": {
        "source": {
          "type": "string",
          "enum": [
            "FILE",
            "DIRECTORY",
            "GIT_LINK",
            "SYMBOLIC_LINK"
          ],
          "description": "The type of the object in the source branch."
        },
        "destination": {
          "type": "string",
          "enum": [
            "FILE",
            "DIRECTORY",
            "GIT_LINK",
            "SYMBOLIC_LINK"
          ],
          "description": "The type of the object in the destination branch."
        },
        "base": {
          "type": "string",
          "enum": [
            "FILE",
            "DIRECTORY",
            "GIT_LINK",
            "SYMBOLIC_LINK"
          ],
          "description": "The type of the object in the base commit of the merge."
        }
      }
    }
  }
}