Files
yao-meta-skill/registry/index.schema.json
T
2026-06-13 18:00:32 +08:00

31 lines
1.1 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://yao.example/registry-index.schema.json",
"title": "Yao Skill Registry Index",
"type": "object",
"additionalProperties": false,
"required": ["schema_version", "generated_at", "package_count", "packages"],
"properties": {
"schema_version": {"const": "2.0"},
"generated_at": {"type": "string"},
"package_count": {"type": "integer", "minimum": 0},
"packages": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["name", "version", "maturity", "owner", "targets", "package_metadata", "package_sha256"],
"properties": {
"name": {"type": "string", "minLength": 1},
"version": {"type": "string", "minLength": 1},
"maturity": {"type": "string", "minLength": 1},
"owner": {"type": "string", "minLength": 1},
"targets": {"type": "array", "items": {"type": "string"}},
"package_metadata": {"type": "string", "minLength": 1},
"package_sha256": {"type": "string", "minLength": 64, "maxLength": 64}
}
}
}
}
}