{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mzizi-dev/json-schema/mzizi-dev-registry-item-schema.json",
  "title": "RegistryItem",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mzizi-dev-openapi.yml#/components/schemas/RegistryItem",
  "type": "object",
  "required": [
    "$schema",
    "name",
    "type",
    "description",
    "dependencies",
    "registryDependencies",
    "files"
  ],
  "properties": {
    "$schema": {
      "type": "string",
      "const": "https://ui.shadcn.com/schema/registry-item.json"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "registry:ui",
        "registry:hook",
        "registry:lib"
      ]
    },
    "description": {
      "type": "string"
    },
    "dependencies": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "registryDependencies": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "files": {
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "#/$defs/RegistryFile"
      }
    }
  },
  "$defs": {
    "RegistryFile": {
      "type": "object",
      "required": [
        "path",
        "type",
        "content"
      ],
      "properties": {
        "path": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "content": {
          "type": "string",
          "description": "Full source code of the component file"
        }
      }
    }
  }
}