{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hoplix-com/json-schema/hoplix-com-campaign-schema.json",
  "title": "Campaign",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/hoplix-com-v1-openapi.json#/components/schemas/Campaign",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "private": {
      "type": "string"
    },
    "campaign-duration": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "currency": {
      "type": "string"
    },
    "products": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "product-id": {
            "type": "string",
            "description": "Use it in create-order"
          },
          "product-name": {
            "type": "string"
          },
          "product-code": {
            "type": "string"
          },
          "product-price": {
            "type": "string"
          },
          "product-color": {
            "type": "string"
          },
          "product-size": {
            "type": "string"
          },
          "preview": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}