{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "CatalogCreate",
  "description": "Payload for creating a catalog.",
  "$id": "https://raw.githubusercontent.com/api-evangelist/bluecart/refs/heads/main/json-schema/bluecart-catalog-create-schema.json",
  "type": "object",
  "properties": {
    "catalogName": {
      "type": "string",
      "example": "Premium Wines"
    },
    "products": {
      "type": "array",
      "description": "Products to include, with ids and discount options.",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "customers": {
      "type": "array",
      "description": "Customers to assign the catalog to, by id.",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    }
  },
  "required": [
    "catalogName"
  ]
}