{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-register-plugin-request-schema.json",
  "title": "RegisterPluginRequest",
  "description": "Request body for registering a plugin in the marketplace.\n\nLiteLLM acts as a registry/discovery layer. Plugins are hosted on\nGitHub/GitLab/Bitbucket and referenced by their git source.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-claude-code-marketplace-api-openapi.yml#/components/schemas/RegisterPluginRequest",
  "properties": {
    "author": {
      "anyOf": [
        {
          "$ref": "#/$defs/PluginAuthor"
        },
        {
          "type": "null"
        }
      ],
      "description": "Plugin author"
    },
    "category": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Plugin category",
      "title": "Category"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Plugin description",
      "title": "Description"
    },
    "domain": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Skill domain (e.g., 'Productivity')",
      "title": "Domain"
    },
    "homepage": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Plugin homepage URL",
      "title": "Homepage"
    },
    "keywords": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "description": "Search keywords",
      "title": "Keywords"
    },
    "name": {
      "description": "Plugin name (kebab-case, e.g., 'my-plugin')",
      "pattern": "^[a-z0-9-]+$",
      "title": "Name",
      "type": "string"
    },
    "namespace": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Skill namespace within domain (e.g., 'workflows')",
      "title": "Namespace"
    },
    "source": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Git source reference. Supported formats:\n- GitHub: {'source': 'github', 'repo': 'org/repo'}\n- Git URL: {'source': 'url', 'url': 'https://github.com/org/repo.git'}\n- Git Subdir: {'source': 'git-subdir', 'url': 'https://github.com/org/repo.git', 'path': 'plugins/plugin-name'}",
      "title": "Source",
      "type": "object"
    },
    "version": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": "1.0.0",
      "description": "Semantic version",
      "title": "Version"
    }
  },
  "required": [
    "name",
    "source"
  ],
  "type": "object",
  "$defs": {
    "PluginAuthor": {
      "description": "Plugin author information.",
      "properties": {
        "email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Author email",
          "title": "Email"
        },
        "name": {
          "description": "Author name",
          "title": "Name",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "title": "PluginAuthor",
      "type": "object"
    }
  }
}