{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pivotbank-app/json-schema/pivotbank-app-api-index-schema.json",
  "title": "ApiIndex",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pivotbank-app-openapi.json#/components/schemas/ApiIndex",
  "type": "object",
  "required": [
    "name",
    "version",
    "endpoints",
    "openapi",
    "auth",
    "docs"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "endpoints": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "method",
          "path",
          "operationId"
        ],
        "properties": {
          "method": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "operationId": {
            "type": "string"
          }
        }
      }
    },
    "openapi": {
      "type": "string",
      "format": "uri"
    },
    "auth": {
      "type": "string",
      "format": "uri"
    },
    "docs": {
      "type": "string",
      "format": "uri"
    },
    "versioning": {
      "type": "string",
      "format": "uri"
    },
    "mcp": {
      "type": "object",
      "description": "The MCP servers: one to act, one for the docs, and the server card.",
      "properties": {
        "server": {
          "type": "string",
          "format": "uri"
        },
        "docs": {
          "type": "string",
          "format": "uri"
        },
        "card": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}