-
-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Expand file tree
/
Copy pathcontext-pack-registry.schema.json
More file actions
42 lines (42 loc) · 1.25 KB
/
Copy pathcontext-pack-registry.schema.json
File metadata and controls
42 lines (42 loc) · 1.25 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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ECC context registry declaration",
"type": "object",
"additionalProperties": false,
"required": ["schemaVersion", "id", "inventory", "overrides"],
"properties": {
"schemaVersion": { "const": 1 },
"id": { "const": "skill-registry@1" },
"inventory": {
"type": "object",
"additionalProperties": false,
"required": ["source", "skillsRoot"],
"properties": {
"source": { "const": "manifests/install-modules.json" },
"skillsRoot": { "const": "skills" }
}
},
"overrides": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["id"],
"properties": {
"id": { "$ref": "#/definitions/skillId" },
"dependencies": {
"type": "array", "uniqueItems": true,
"items": { "$ref": "#/definitions/skillId" }
},
"requiredResources": {
"type": "array", "uniqueItems": true,
"items": { "type": "string", "minLength": 1, "maxLength": 4096 }
}
}
}
}
},
"definitions": {
"skillId": { "type": "string", "pattern": "^skill:[a-z0-9]+(?:-[a-z0-9]+)*$" }
}
}