{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ecomsource-ai/json-schema/ecomsource-ai-product-response-schema.json",
  "title": "ProductResponse",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ecomsource-ai-openapi.yml#/components/schemas/ProductResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProductData"
      }
    },
    "message": {
      "type": "string"
    }
  },
  "$defs": {
    "ProductData": {
      "type": "object",
      "properties": {
        "asin": {
          "type": "string"
        },
        "variationType": {
          "type": "string",
          "enum": [
            "PARENT",
            "CHILD"
          ]
        },
        "identifiers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "identifier": {
                "type": "string"
              }
            }
          }
        },
        "summary": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "brand": {
                "type": "string"
              },
              "itemName": {
                "type": "string"
              },
              "manufacturer": {
                "type": "string"
              },
              "modelNumber": {
                "type": "string"
              },
              "htmlDescription": {
                "type": "string"
              },
              "category": {
                "type": "string"
              },
              "listPrice": {
                "type": "number"
              },
              "listPriceCurrency": {
                "type": "string"
              }
            }
          }
        },
        "attributes": {
          "type": "object",
          "properties": {
            "bulletPoint": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "value": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "dimensions": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "height": {
                "type": "number"
              },
              "width": {
                "type": "number"
              },
              "length": {
                "type": "number"
              },
              "weight": {
                "type": "number"
              }
            }
          }
        },
        "images": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "variant": {
                "type": "string"
              },
              "link": {
                "type": "string"
              }
            }
          }
        },
        "salesRanks": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "categoryName": {
                "type": "string"
              },
              "rank": {
                "type": "integer"
              }
            }
          }
        },
        "affiliateLink": {
          "type": "string"
        }
      }
    }
  }
}