{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Package",
  "title": "Package",
  "required": [
    "id",
    "orderId",
    "envelope",
    "dimensions",
    "weight",
    "totalValue",
    "items",
    "categories",
    "description"
  ],
  "type": "object",
  "description": "Package information.",
  "properties": {
    "id": {
      "type": "string",
      "description": "Package ID."
    },
    "orderId": {
      "type": "string",
      "description": "Order ID."
    },
    "envelope": {
      "type": "string",
      "description": "Name of the envelope used."
    },
    "dimensions": {
      "$ref": "#/components/schemas/Dimensions",
      "description": "Package dimensions."
    },
    "weight": {
      "type": "string",
      "description": "Package weight in grams."
    },
    "totalValue": {
      "type": "integer",
      "format": "int32",
      "description": "Total value of the order."
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Item",
        "description": "Product general information."
      },
      "description": "Array containing information about the order's products."
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Category name."
      },
      "description": "Array of categories."
    },
    "description": {
      "type": "string",
      "description": "Package description."
    }
  },
  "example": {
    "id": "a46e5bc1-8959-459f-a094-b6e699f7214c",
    "orderId": "46369545534253-01",
    "envelope": "Foam or Plastic Containers",
    "dimensions": {
      "height": "5",
      "length": "11",
      "width": "7"
    },
    "weight": "48",
    "totalValue": 5352,
    "items": [
      {
        "id": "184",
        "name": "Chicken",
        "ean": "EAN354",
        "quantity": 8,
        "price": 669,
        "refId": "314",
        "image": "https://picsum.photos/seed/YtoZ9/128/480",
        "type": "other",
        "weight": "6"
      }
    ],
    "categories": [
      "Movies",
      "Garden",
      "Books"
    ],
    "description": "Unde deserunt libero cupiditate illum."
  }
}