{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wievielkostetmeinumzug-de/json-schema/wievielkostetmeinumzug-de-cbm-estimate-request-schema.json",
  "title": "CbmEstimateRequest",
  "description": "Request body for POST /v1/cbm/estimate.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wievielkostetmeinumzug-de-openapi.json#/components/schemas/CbmEstimateRequest",
  "properties": {
    "method": {
      "type": "string",
      "enum": [
        "room_preset",
        "item_list"
      ],
      "title": "Method",
      "default": "room_preset"
    },
    "rooms": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Rooms"
    },
    "item_ids": {
      "items": {
        "type": "integer"
      },
      "type": "array",
      "title": "Item Ids"
    },
    "item_counts": {
      "additionalProperties": {
        "type": "integer"
      },
      "type": "object",
      "title": "Item Counts"
    },
    "items": {
      "items": {
        "$ref": "#/$defs/CbmEstimateItem"
      },
      "type": "array",
      "title": "Items"
    },
    "lang": {
      "type": "string",
      "enum": [
        "de",
        "en"
      ],
      "title": "Lang",
      "default": "de"
    }
  },
  "type": "object",
  "$defs": {
    "CbmEstimateItem": {
      "properties": {
        "id": {
          "type": "integer",
          "exclusiveMinimum": 0.0,
          "title": "Id"
        },
        "qty": {
          "type": "integer",
          "exclusiveMinimum": 0.0,
          "title": "Qty"
        }
      },
      "type": "object",
      "required": [
        "id",
        "qty"
      ],
      "title": "CbmEstimateItem"
    }
  }
}