{
  "$defs": {
    "Condition": {
      "enum": [
        "new",
        "refurbished",
        "used"
      ],
      "title": "Condition",
      "type": "string"
    }
  },
  "description": "One product in a customer feed, in GMC attribute names.",
  "properties": {
    "id": {
      "description": "Unique, stable product (variant) identifier.",
      "maxLength": 50,
      "minLength": 1,
      "title": "Id",
      "type": "string"
    },
    "title": {
      "maxLength": 150,
      "minLength": 1,
      "title": "Title",
      "type": "string"
    },
    "image_link": {
      "description": "Main product photo URL.",
      "title": "Image Link",
      "type": "string"
    },
    "description": {
      "anyOf": [
        {
          "maxLength": 5000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Description"
    },
    "additional_image_link": {
      "items": {
        "type": "string"
      },
      "maxItems": 10,
      "title": "Additional Image Link",
      "type": "array"
    },
    "brand": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Brand"
    },
    "product_type": {
      "description": "The merchant's own category breadcrumb(s), '>'-separated; the first is used for routing.",
      "items": {
        "type": "string"
      },
      "maxItems": 5,
      "title": "Product Type",
      "type": "array"
    },
    "condition": {
      "anyOf": [
        {
          "$ref": "#/$defs/Condition"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "color": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Up to three colors separated by '/'.",
      "title": "Color"
    },
    "size": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Size"
    },
    "price": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Amount and ISO 4217 currency, e.g. '49.00 USD'.",
      "title": "Price"
    },
    "sale_price": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Sale Price"
    },
    "attributes": {
      "additionalProperties": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "integer"
          },
          {
            "type": "number"
          },
          {
            "type": "boolean"
          },
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        ]
      },
      "title": "Attributes",
      "type": "object"
    }
  },
  "required": [
    "id",
    "title",
    "image_link"
  ],
  "title": "CustomerProduct",
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://unimode.ai/schemas/customer-product.schema.json",
  "additionalProperties": true
}
