Repository navigation
Expand file tree
/
Copy pathcapabilities.schema.json
More file actions
50 lines (50 loc) · 1.98 KB
/
Copy pathcapabilities.schema.json
File metadata and controls
50 lines (50 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "TinyCloud Capability Registry",
"description": "Schema for capabilities.json — the single source of truth for TinyCloud capability action URNs (TC-112).",
"type": "object",
"required": ["version", "capabilities"],
"additionalProperties": true,
"properties": {
"$schema": { "type": "string" },
"version": { "type": "integer", "minimum": 1 },
"description": { "type": "string" },
"capabilities": {
"type": "array",
"items": {
"type": "object",
"required": ["urn", "service", "status"],
"additionalProperties": false,
"properties": {
"urn": {
"type": "string",
"pattern": "^[a-z0-9.]+/[A-Za-z0-9._*-]+$",
"description": "Full capability action URN, e.g. tinycloud.kv/get."
},
"service": {
"type": "string",
"pattern": "^[a-z0-9.]+$",
"description": "Service prefix of the URN, e.g. tinycloud.kv."
},
"status": {
"enum": ["active", "deprecated-alias", "reserved"],
"description": "active: dispatched by the node. deprecated-alias: accepted but resolves to aliasOf. reserved: accepted at the policy boundary but not dispatched yet."
},
"aliasOf": {
"type": "string",
"description": "Required when status is deprecated-alias: the canonical URN this alias resolves to."
},
"implies": {
"type": "array",
"items": { "type": "string" },
"description": "URNs implied by holding this one (e.g. sql/admin implies sql/schema). Used by containment subset checks."
},
"notes": {
"type": "string",
"description": "Provenance/grounding note — where the node-side handling lives, or why the status is what it is. Documentation only; not emitted into generated code."
}
}
}
}
}
}