{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aidelly-ai/json-schema/aidelly-ai-ecommerce-product-schema.json",
  "title": "EcommerceProduct",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aidelly-ai-ecommerce-api-openapi.yml#/components/schemas/EcommerceProduct",
  "type": "object",
  "required": [
    "id",
    "store_id",
    "provider",
    "title",
    "product_url"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "store_id": {
      "type": "string",
      "format": "uuid"
    },
    "provider": {
      "$ref": "#/$defs/EcommerceProvider"
    },
    "external_id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "primary_image_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "product_url": {
      "type": "string",
      "format": "uri"
    },
    "price": {
      "type": [
        "string",
        "null"
      ],
      "description": "Decimal as string."
    },
    "currency": {
      "type": [
        "string",
        "null"
      ],
      "description": "ISO-4217."
    },
    "sku": {
      "type": [
        "string",
        "null"
      ]
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "EcommerceProvider": {
      "type": "string",
      "enum": [
        "shopify",
        "woocommerce",
        "etsy",
        "wix"
      ]
    }
  }
}