{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.123clearout.com/data/clearout-prices.schema.json",
  "title": "How Much of the Truck? Clearout Price Estimator (rows)",
  "allOf": [
    {
      "$ref": "https://the123.co/schemas/data-asset/v1.json"
    }
  ],
  "properties": {
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "row_id",
          "market",
          "market_name",
          "item",
          "item_name",
          "category",
          "unit",
          "load_share_max_pct",
          "our_price_usd",
          "our_price_max_usd",
          "included_weight_lb",
          "price_book_version",
          "effective_from"
        ],
        "additionalProperties": false,
        "properties": {
          "row_id": {
            "type": "string",
            "description": "Stable row key"
          },
          "market": {
            "type": [
              "string",
              "null"
            ],
            "description": "Price-book market slug"
          },
          "market_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Market display name"
          },
          "item": {
            "type": [
              "string",
              "null"
            ],
            "description": "Price-book SKU"
          },
          "item_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name"
          },
          "category": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "load_size",
              "add_on",
              null
            ],
            "description": "A load size or an add-on"
          },
          "unit": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "per_load",
              "per_flight",
              "per_order",
              null
            ],
            "description": "What the price is for"
          },
          "load_share_max_pct": {
            "type": [
              "number",
              "null"
            ],
            "description": "Largest share of a full truck this size covers (load sizes only)"
          },
          "our_price_usd": {
            "type": [
              "number",
              "null"
            ],
            "description": "Our posted price (the low end for a load size), before sales tax"
          },
          "our_price_max_usd": {
            "type": [
              "number",
              "null"
            ],
            "description": "Upper end of the posted range for a load size, before sales tax"
          },
          "included_weight_lb": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Weight included in the load size; empty when the price book sets none"
          },
          "price_book_version": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Price-book version the row was read from"
          },
          "effective_from": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date the price-book version took effect"
          }
        }
      }
    }
  }
}