{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/drillerdb-com/json-schema/drillerdb-com-inventory-item-list-response-schema.json",
  "title": "InventoryItemListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/drillerdb-com-inventory-api-openapi.yml#/components/schemas/InventoryItemListResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InventoryItem"
      }
    },
    "meta": {
      "$ref": "#/$defs/ListMeta"
    },
    "links": {
      "$ref": "#/$defs/ListLinks"
    }
  },
  "required": [
    "data",
    "meta",
    "links"
  ],
  "$defs": {
    "InventoryItem": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "item_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "category": {
          "type": [
            "string",
            "null"
          ]
        },
        "current_quantity": {
          "type": [
            "number",
            "null"
          ]
        },
        "min_quantity": {
          "type": [
            "number",
            "null"
          ]
        },
        "max_quantity": {
          "type": [
            "number",
            "null"
          ]
        },
        "unit": {
          "type": [
            "string",
            "null"
          ]
        },
        "unit_price": {
          "type": [
            "number",
            "null"
          ]
        },
        "location": {
          "type": [
            "string",
            "null"
          ]
        },
        "sku": {
          "type": [
            "string",
            "null"
          ]
        },
        "is_active": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "last_restocked_date": {
          "type": [
            "string",
            "null"
          ]
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "item_id",
        "name"
      ]
    },
    "ListLinks": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string"
        },
        "next": {
          "type": "string"
        }
      },
      "required": [
        "self"
      ]
    },
    "ListMeta": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        },
        "limit": {
          "type": "integer"
        },
        "has_more": {
          "type": "boolean"
        },
        "next_cursor": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "request_id",
        "limit",
        "has_more",
        "next_cursor"
      ]
    }
  }
}