{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/iterant-ai/json-schema/iterant-ai-public-brand-list-schema.json",
  "title": "PublicBrandList",
  "description": "The schema for what ``paginated`` builds. Kept beside it deliberately.\n\nA list operation whose ``responses`` named the *item* serializer with\n``many=True`` published a bare array while the runtime returned this object,\nso a generated client broke on its first call. Subclasses add ``items``:\neach operation needs its own named component or the item type is erased.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/iterant-ai-openapi.json#/components/schemas/PublicBrandList",
  "type": "object",
  "properties": {
    "total": {
      "type": "integer",
      "description": "Rows matching the query, before `limit` and `offset`."
    },
    "offset": {
      "type": "integer",
      "description": "Rows skipped. Echoed back so a caller can page without bookkeeping."
    },
    "limit": {
      "type": "integer",
      "description": "Cap actually applied, which may be lower than the one requested."
    },
    "note": {
      "type": "string",
      "description": "How to narrow, when the cap hid rows. Empty when the response is the whole answer."
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PublicBrandSummary"
      }
    }
  },
  "required": [
    "items",
    "limit",
    "note",
    "offset",
    "total"
  ],
  "$defs": {
    "PublicBrandSummary": {
      "type": "object",
      "properties": {
        "brandSlug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "websiteUrl": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "defaultLanguage": {
          "type": "string"
        },
        "publishedPages": {
          "type": "integer"
        },
        "openOpportunities": {
          "type": "integer"
        }
      },
      "required": [
        "brandSlug",
        "name",
        "openOpportunities",
        "publishedPages",
        "websiteUrl"
      ]
    }
  }
}