{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ex2-com/json-schema/ex2-com-index-schema.json",
  "title": "Index",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ex2-com-openapi.json#/components/schemas/Index",
  "type": "object",
  "required": [
    "name",
    "version",
    "description",
    "documentation",
    "mcp_server",
    "openapi",
    "parameters",
    "endpoints",
    "product_lines"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "version": {
      "type": "integer"
    },
    "description": {
      "type": "string"
    },
    "documentation": {
      "type": "string",
      "format": "uri",
      "description": "The developers page, in the language asked for."
    },
    "mcp_server": {
      "type": "string",
      "format": "uri"
    },
    "openapi": {
      "type": "string",
      "format": "uri",
      "description": "This document."
    },
    "parameters": {
      "type": "object",
      "additionalProperties": {
        "type": "object"
      }
    },
    "endpoints": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "path",
          "query",
          "description"
        ],
        "properties": {
          "path": {
            "type": "string"
          },
          "query": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "description": {
            "type": "string"
          }
        }
      }
    },
    "product_lines": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProductLine"
      }
    }
  },
  "$defs": {
    "ProductLine": {
      "type": "object",
      "required": [
        "id",
        "name",
        "url",
        "plans"
      ],
      "properties": {
        "id": {
          "type": "string",
          "enum": [
            "green",
            "wordpress",
            "divi",
            "woocommerce",
            "ecommerce",
            "cms",
            "site-builder",
            "n8n",
            "email",
            "reseller",
            "vps",
            "dedicated",
            "server-management"
          ]
        },
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "The product line's page."
        },
        "plans": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Its plan ids."
        }
      }
    }
  }
}