{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://codingbuddy.dev/schemas/marketplace.schema.json",
  "title": "Claude Code Marketplace Manifest",
  "description": "Schema for .claude-plugin/marketplace.json — marketplace listing configuration",
  "type": "object",
  "required": ["name", "plugins"],
  "properties": {
    "name": {
      "type": "string",
      "description": "Marketplace namespace identifier",
      "minLength": 1
    },
    "metadata": {
      "type": "object",
      "properties": {
        "description": { "type": "string" }
      }
    },
    "owner": {
      "type": "object",
      "properties": {
        "name": { "type": "string" },
        "email": { "type": "string" }
      },
      "required": ["name"]
    },
    "plugins": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": ["name", "source", "version"],
        "properties": {
          "name": {
            "type": "string",
            "description": "Plugin name",
            "minLength": 1
          },
          "source": {
            "type": "string",
            "description": "Relative path to plugin directory"
          },
          "description": {
            "type": "string"
          },
          "version": {
            "type": "string",
            "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(-[a-zA-Z0-9.]+)?$"
          },
          "category": {
            "type": "string",
            "enum": ["development", "productivity", "testing", "devops", "other"]
          }
        },
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}
