{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudworldmodel-ai/json-schema/cloudworldmodel-ai-generic-shape-inventory-schema.json",
  "title": "GenericShapeInventory",
  "description": "Resolver-derived, read-only inventory of remaining generic prediction\ncases. It includes named catalog gaps and conditional categories with\nreasons; unknown/custom compute is a wildcard rather than an exhaustive\nlist of arbitrary SKU strings. Inventory metadata describes capacity\nresolution only, not performance benchmarks or prices.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudworldmodel-ai-optimize-predict-api-openapi.yml#/components/schemas/GenericShapeInventory",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "version": {
      "type": "integer",
      "description": "Inventory contract version."
    },
    "namedCatalogGaps": {
      "type": "array",
      "description": "Named catalog-backed shape gaps, with their reasons.",
      "items": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "provider",
          "shape",
          "reason"
        ],
        "properties": {
          "provider": {
            "type": "string"
          },
          "shape": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        }
      }
    },
    "conditionalCategories": {
      "type": "array",
      "description": "Conditional fallback classes, including their resolution condition and reason.",
      "items": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "category"
        ],
        "properties": {
          "category": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        }
      }
    }
  }
}