{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cavuno-com/json-schema/cavuno-com-taxonomy-merge-preview-schema.json",
  "title": "TaxonomyMergePreview",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cavuno-com-categories-api-openapi.yml#/components/schemas/TaxonomyMergePreview",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "taxonomy_merge_preview"
      ]
    },
    "kind": {
      "type": "string",
      "enum": [
        "category",
        "skill"
      ]
    },
    "from": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "jobCount": {
          "type": "integer",
          "description": "Live jobs tagged with this term."
        }
      },
      "required": [
        "id",
        "name",
        "slug",
        "jobCount"
      ]
    },
    "into": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "jobCount": {
          "type": "integer",
          "description": "Live jobs tagged with this term."
        }
      },
      "required": [
        "id",
        "name",
        "slug",
        "jobCount"
      ]
    },
    "childCount": {
      "type": "integer",
      "description": "Subcategories that move to the surviving category."
    },
    "undoAvailable": {
      "type": "boolean",
      "description": "Whether the merge will be undoable: `from` has no more live jobs than `undoJobCap`."
    },
    "undoJobCap": {
      "type": "integer"
    },
    "undoWindowDays": {
      "type": "integer"
    }
  },
  "required": [
    "object",
    "kind",
    "from",
    "into",
    "childCount",
    "undoAvailable",
    "undoJobCap",
    "undoWindowDays"
  ]
}