mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-28 12:35:13 +02:00
43 lines
1.2 KiB
JSON
43 lines
1.2 KiB
JSON
{
|
|
"$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]+)*$" }
|
|
}
|
|
}
|