{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reddit/json-schema/reddit-components-schema-catalog-import-issue-schema.json",
  "title": "Catalog Import Issue",
  "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_issue",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "description": "The catalog import issue ID."
    },
    "import_id": {
      "type": "string",
      "description": "The catalog import ID."
    },
    "severity": {
      "type": "string",
      "description": "The issue severity.",
      "enum": [
        "CRITICAL",
        "WARNING"
      ]
    },
    "code": {
      "$ref": "#/$defs/components_enums_catalog_import_issue_code"
    },
    "message": {
      "type": "string",
      "description": "The human-readable message describing this issue."
    },
    "line": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The line where the issue occurred.",
      "minimum": 0
    },
    "field": {
      "type": [
        "string",
        "null"
      ],
      "description": "The field where the issue occurred."
    },
    "product_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The product ID this issue relates to."
    },
    "created_at": {
      "$ref": "#/$defs/components_schema_created_at"
    }
  },
  "$defs": {
    "components_enums_catalog_import_issue_code": {
      "type": "string",
      "description": "The issue code encountered in the catalog import.",
      "enum": [
        "INTERNAL_ERROR",
        "FETCH_ERROR",
        "FILE_NOT_FOUND",
        "INVALID_FEED_URL",
        "UNAUTHORIZED_ERROR",
        "INVALID_FILE_FORMAT",
        "INVALID_FILE_ENCODING",
        "INVALID_FILE_HEADER",
        "INVALID_LINE_FORMAT",
        "INVALID_DELIMITER",
        "INCORRECT_PRODUCTS_COUNT",
        "MISSING_PRODUCT_ID",
        "MISSING_TITLE",
        "MISSING_DESCRIPTION",
        "MISSING_LINK",
        "MISSING_IMAGE_LINK",
        "MISSING_PRICE",
        "INVALID_PRODUCT_ID",
        "INVALID_TITLE",
        "INVALID_DESCRIPTION",
        "INVALID_LINK",
        "INVALID_IMAGE_LINK",
        "INVALID_PRICE",
        "INVALID_ITEM_GROUP_ID",
        "INVALID_ADDITIONAL_IMAGE_LINKS",
        "INVALID_MOBILE_LINK",
        "INVALID_SALE_PRICE",
        "INVALID_PRODUCT_TYPE",
        "INVALID_COLOR",
        "INVALID_CUSTOM_LABEL_0",
        "INVALID_CUSTOM_LABEL_1",
        "INVALID_CUSTOM_LABEL_2",
        "INVALID_CUSTOM_LABEL_3",
        "INVALID_CUSTOM_LABEL_4",
        "INVALID_SALE_PRICE_EFFECTIVE_DATE",
        "INVALID_EXPIRATION_DATE",
        "INVALID_ADULT",
        "INVALID_AGE_GROUP",
        "INVALID_GENDER",
        "INVALID_MATERIAL",
        "INVALID_PATTERN",
        "INVALID_SIZE",
        "INVALID_SIZE_TYPE",
        "INVALID_BRAND",
        "INVALID_CONDITION",
        "INVALID_GTIN",
        "INVALID_MPN",
        "INVALID_AVAILABILITY",
        "INVALID_AVERAGE_REVIEW_RATING",
        "INVALID_COST_OF_GOODS_SOLD",
        "INVALID_CUSTOM_NUMBER_0",
        "INVALID_CUSTOM_NUMBER_1",
        "INVALID_CUSTOM_NUMBER_2",
        "INVALID_CUSTOM_NUMBER_3",
        "INVALID_CUSTOM_NUMBER_4",
        "INVALID_GOOGLE_PRODUCT_CATEGORY",
        "INVALID_IS_BUNDLE",
        "INVALID_LIFESTYLE_IMAGE_LINK",
        "INVALID_NUMBER_OF_RATINGS",
        "INVALID_PLATFORM_SPECIFIC_LINK",
        "INVALID_PRODUCT_DETAIL",
        "INVALID_PRODUCT_HIGHLIGHT",
        "INCOMPATIBLE_WITH_FUTURE_RELEASE"
      ]
    },
    "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
    }
  }
}