{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reddit/json-schema/reddit-components-schema-catalog-import-schema.json",
  "title": "Catalog Import",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reddit-product-catalogs-api-openapi.yml#/components/schemas/components_schema_catalog_import",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "description": "The catalog import ID.",
      "readOnly": true
    },
    "catalog_id": {
      "type": "string",
      "description": "The product catalog ID.",
      "readOnly": true
    },
    "feed_id": {
      "type": "string",
      "description": "The product feed ID.",
      "readOnly": true
    },
    "filename": {
      "type": "string",
      "description": "The name of the file used for this import.",
      "readOnly": true
    },
    "status": {
      "type": "string",
      "description": "The catalog import status.",
      "readOnly": true,
      "enum": [
        "PENDING",
        "PROCESSING",
        "COMPLETED",
        "FAILED",
        "SKIPPED"
      ]
    },
    "summary": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "readOnly": true,
      "description": "An overview of how many products were affected and any issues that occurred.",
      "properties": {
        "added_products_count": {
          "type": [
            "integer",
            "null"
          ],
          "description": "How many products were added.",
          "readOnly": true,
          "minimum": 0
        },
        "modified_products_count": {
          "type": [
            "integer",
            "null"
          ],
          "description": "How many products were modified.",
          "readOnly": true,
          "minimum": 0
        },
        "deleted_products_count": {
          "type": [
            "integer",
            "null"
          ],
          "description": "How many products were deleted.",
          "readOnly": true,
          "minimum": 0
        },
        "invalid_products_count": {
          "type": [
            "integer",
            "null"
          ],
          "description": "How many products were rejected as invalid and not imported.",
          "readOnly": true,
          "minimum": 0
        },
        "issues": {
          "type": [
            "object",
            "null"
          ],
          "description": "The mapping of severity levels and how many products are having this issue.",
          "properties": {
            "critical": {
              "type": [
                "object",
                "null"
              ],
              "description": "Critical issue and how many products are having this issue.",
              "additionalProperties": {
                "type": "integer",
                "minimum": 0
              }
            },
            "warning": {
              "type": [
                "object",
                "null"
              ],
              "description": "Warning issues and how many products are having this issue.",
              "additionalProperties": {
                "type": "integer",
                "minimum": 0
              }
            }
          }
        }
      }
    },
    "created_at": {
      "$ref": "#/$defs/components_schema_created_at"
    },
    "modified_at": {
      "$ref": "#/$defs/components_schema_modified_at"
    }
  },
  "$defs": {
    "components_schema_created_at": {
      "description": "When this entity was created ([ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)).",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "components_schema_modified_at": {
      "title": "Modified At",
      "description": "When this entity was last changed ([ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)).",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    }
  }
}