{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mashprime-dev/json-schema/mashprime-dev-api-index-schema.json",
  "title": "ApiIndex",
  "description": "API entry point.",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mashprime-dev-openapi.json#/components/schemas/ApiIndex",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "API name."
    },
    "version": {
      "type": "string",
      "description": "Current major version."
    },
    "supported_versions": {
      "type": "array",
      "description": "Path versions currently served.",
      "items": {
        "type": "string"
      }
    },
    "base_url": {
      "type": "string",
      "description": "Base URL of this version.",
      "format": "uri"
    },
    "documentation": {
      "type": "string",
      "description": "Developer documentation.",
      "format": "uri"
    },
    "openapi": {
      "type": "string",
      "description": "This OpenAPI document.",
      "format": "uri"
    },
    "authentication": {
      "type": "string",
      "description": "Authentication scheme.",
      "enum": [
        "none"
      ]
    },
    "rate_limit": {
      "type": "object",
      "description": "Per-client rate-limit policy.",
      "properties": {
        "limit": {
          "type": "integer",
          "description": "Requests per window."
        },
        "window_seconds": {
          "type": "integer",
          "description": "Window length in seconds."
        }
      },
      "required": [
        "limit",
        "window_seconds"
      ],
      "additionalProperties": false
    },
    "endpoints": {
      "type": "array",
      "description": "Available endpoints.",
      "items": {
        "type": "object",
        "properties": {
          "method": {
            "type": "string",
            "description": "HTTP method."
          },
          "path": {
            "type": "string",
            "description": "Path template."
          },
          "operation_id": {
            "type": "string",
            "description": "OpenAPI operationId."
          },
          "summary": {
            "type": "string",
            "description": "What the endpoint does."
          }
        },
        "required": [
          "method",
          "path",
          "operation_id",
          "summary"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "name",
    "version",
    "supported_versions",
    "base_url",
    "documentation",
    "openapi",
    "authentication",
    "rate_limit",
    "endpoints"
  ],
  "additionalProperties": false
}