{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://usedeed.app/contracts/deed.design_system_component_manifest.v1.schema.json",
  "title": "DEED design-system component manifest",
  "type": "object",
  "required": ["$schema", "version", "authority", "componentCount", "components"],
  "properties": {
    "$schema": { "const": "https://usedeed.app/contracts/deed.design_system_component_manifest.v1.schema.json" },
    "version": { "const": 1 },
    "authority": { "const": "governance/design/ui_kits/components" },
    "componentCount": { "type": "integer", "minimum": 1 },
    "components": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["name", "group", "kind", "class", "sourcePath", "typePath", "contentHash"],
        "properties": {
          "name": { "type": "string", "minLength": 1 },
          "group": { "type": "string", "minLength": 1 },
          "kind": { "type": "string", "minLength": 1 },
          "class": { "type": ["string", "null"] },
          "sourcePath": { "type": "string", "minLength": 1 },
          "typePath": { "type": "string", "minLength": 1 },
          "contentHash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
        }
      }
    }
  }
}
