34 lines
1.3 KiB
JSON
Executable File
34 lines
1.3 KiB
JSON
Executable File
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://cognitive-agent.local/schemas/domain-manifest.schema.json",
|
|
"title": "DomainManifest",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["apiVersion", "kind", "metadata", "spec"],
|
|
"properties": {
|
|
"apiVersion": {"const": "cognitive-agent/v1alpha1"},
|
|
"kind": {"const": "DomainManifest"},
|
|
"metadata": {"$ref": "common.schema.json#/$defs/metadata"},
|
|
"spec": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["domain", "entrypoint", "function_schema", "capabilities", "signal_mapping", "supported_platforms"],
|
|
"properties": {
|
|
"domain": {"type": "string", "pattern": "^[a-z][a-z0-9_]*$"},
|
|
"entrypoint": {"type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_.]*:[A-Za-z_][A-Za-z0-9_]*$"},
|
|
"function_schema": {"type": "string", "format": "uri-reference"},
|
|
"capabilities": {"type": "string", "format": "uri-reference"},
|
|
"signal_mapping": {"type": "string", "format": "uri-reference"},
|
|
"supported_platforms": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"uniqueItems": true,
|
|
"items": {"type": "string", "pattern": "^[a-z][a-z0-9_-]*$"}
|
|
},
|
|
"telemetry_required": {"type": "boolean", "default": true}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|