{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/duck-hub-com/json-schema/duck-hub-com-cleanup-response-dto-schema.json",
  "title": "CleanupResponseDto",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/duck-hub-com-openapi.json#/components/schemas/CleanupResponseDto",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "deactivatedProducts": {
      "type": "number"
    },
    "deletedCategories": {
      "type": "number"
    },
    "deletedIngredients": {
      "type": "number"
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "dryRun": {
      "type": "boolean",
      "description": "Present (true) only for ?dryRun=true previews — nothing was written."
    },
    "preview": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": true
      },
      "description": "dryRun only: capped ref lists of what WOULD be hidden/deleted."
    }
  },
  "required": [
    "success",
    "deactivatedProducts",
    "deletedCategories",
    "deletedIngredients",
    "warnings"
  ]
}