{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/duck-hub-com/json-schema/duck-hub-com-sync-response-dto-schema.json",
  "title": "SyncResponseDto",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/duck-hub-com-openapi.json#/components/schemas/SyncResponseDto",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "categories": {
      "$ref": "#/$defs/SyncResultDto"
    },
    "ingredients": {
      "$ref": "#/$defs/SyncResultDto"
    },
    "products": {
      "$ref": "#/$defs/SyncResultDto"
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "syncedAt": {
      "type": "string"
    },
    "dryRun": {
      "type": "boolean",
      "description": "Present (true) only for ?dryRun=true previews — nothing was written."
    },
    "translations": {
      "type": "object",
      "properties": {
        "applied": {
          "type": "number"
        }
      },
      "required": [
        "applied"
      ]
    }
  },
  "required": [
    "success",
    "warnings",
    "syncedAt"
  ],
  "$defs": {
    "SyncResultDto": {
      "type": "object",
      "properties": {
        "created": {
          "type": "number"
        },
        "updated": {
          "type": "number"
        },
        "skipped": {
          "type": "number"
        },
        "errors": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "created",
        "updated",
        "skipped",
        "errors",
        "warnings"
      ]
    }
  }
}