{
  "$schema": "https://json-structure.org/meta/extended/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/swell-io/main/json-structure/swell-product-structure.json",
  "title": "Swell Product",
  "type": "object",
  "properties": {
    "id": { "type": "string" },
    "name": { "type": "string" },
    "slug": { "type": "string" },
    "sku": { "type": "string" },
    "active": { "type": "boolean" },
    "type": { "type": "string" },
    "delivery": { "type": "string" },
    "price": { "type": "decimal" },
    "sale_price": { "type": "decimal" },
    "currency": { "type": "string" },
    "description": { "type": "string" },
    "stock_tracking": { "type": "boolean" },
    "stock_level": { "type": "int32" },
    "stock_status": { "type": "string" },
    "variable": { "type": "boolean" },
    "variants": { "type": "array", "items": { "type": "object" } },
    "options": { "type": "array", "items": { "type": "object" } },
    "purchase_options": { "type": "object" },
    "category_id": { "type": "string" },
    "categories": { "type": "array", "items": { "type": "object" } },
    "shipment_weight": { "type": "decimal" },
    "shipment_dimensions": { "type": "object" },
    "images": { "type": "array", "items": { "type": "object" } },
    "tags": { "type": "array", "items": { "type": "string" } },
    "date_created": { "type": "string" },
    "date_updated": { "type": "string" }
  }
}
