{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/woocommerce/refs/heads/main/json-schema/woocommerce-store-api-store-product-image-schema.json",
  "title": "StoreProductImage",
  "description": "Product image with thumbnail variants.",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Image attachment ID.",
      "example": 1
    },
    "src": {
      "type": "string",
      "format": "uri",
      "description": "Full-size image URL.",
      "example": "https://example.com/path"
    },
    "thumbnail": {
      "type": "string",
      "format": "uri",
      "description": "Thumbnail image URL.",
      "example": "https://example.com/path"
    },
    "srcset": {
      "type": "string",
      "description": "Responsive image srcset attribute value.",
      "example": "string-value"
    },
    "sizes": {
      "type": "string",
      "description": "Responsive image sizes attribute value.",
      "example": "string-value"
    },
    "name": {
      "type": "string",
      "description": "Image file name.",
      "example": "Example Name"
    },
    "alt": {
      "type": "string",
      "description": "Image alternative text.",
      "example": "string-value"
    }
  }
}