{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/emporix/main/json-schema/emporix-employee-shopping-list-create-request-schema.json",
  "title": "employeeShoppingListCreateRequest",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/emporix-shopping-list-openapi.yml#/components/schemas/employeeShoppingListCreateRequest",
  "allOf": [
    {
      "$ref": "#/$defs/ownShoppingListCreateRequest"
    }
  ],
  "properties": {
    "customerId": {
      "type": "string",
      "description": "Unique identifier of customer"
    },
    "mixins": {
      "type": "object",
      "additionalProperties": true,
      "description": "Map of custom shopping lists attributes.\n"
    },
    "metadata": {
      "properties": {
        "mixins": {
          "type": "object",
          "additionalProperties": true,
          "description": "Mixins schemas"
        }
      }
    }
  },
  "$defs": {
    "ownShoppingListCreateRequest": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/shoppinglistItem"
          }
        },
        "mixins": {
          "type": "object",
          "additionalProperties": true,
          "description": "Map of custom shopping lists attributes.\n"
        },
        "metadata": {
          "properties": {
            "mixins": {
              "type": "object",
              "additionalProperties": true,
              "description": "Mixins schemas"
            }
          }
        }
      },
      "required": [
        "name"
      ]
    },
    "shoppinglistItem": {
      "title": "ShoppinglistItem",
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "productId": {
          "type": "string"
        },
        "quantity": {
          "type": "number"
        },
        "cuttingOption": {
          "type": "string"
        },
        "servicePackagingOption": {
          "type": "string"
        },
        "comment": {
          "type": "string"
        },
        "mixins": {
          "type": "object",
          "additionalProperties": true
        }
      },
      "required": [
        "productId",
        "quantity"
      ]
    }
  }
}