{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://cognitive-agent.local/schemas/platform-manifest.schema.json", "title": "PlatformManifest", "type": "object", "additionalProperties": false, "required": ["apiVersion", "kind", "metadata", "spec"], "properties": { "apiVersion": {"const": "cognitive-agent/v1alpha1"}, "kind": {"const": "PlatformManifest"}, "metadata": {"$ref": "common.schema.json#/$defs/metadata"}, "spec": { "type": "object", "additionalProperties": false, "required": ["platform", "execution_enabled", "dbc_files", "buses", "supported_domains", "calibrations"], "properties": { "platform": {"type": "string", "pattern": "^[a-z][a-z0-9_-]*$"}, "execution_enabled": {"type": "boolean"}, "dbc_files": { "type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "format": "uri-reference"} }, "buses": { "type": "array", "minItems": 1, "items": { "type": "object", "additionalProperties": false, "required": ["name", "backend", "channel_env"], "properties": { "name": {"type": "string", "pattern": "^[a-z][a-z0-9_-]*$"}, "backend": {"type": "string", "enum": ["virtual", "socketcan", "pcan", "vector", "zlgcan"]}, "channel_env": {"type": "string", "pattern": "^[A-Z][A-Z0-9_]*$"}, "fd": {"type": "boolean", "default": false} } } }, "supported_domains": { "type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "pattern": "^[a-z][a-z0-9_]*$"} }, "calibrations": { "type": "object", "minProperties": 1, "additionalProperties": {"type": "string", "format": "uri-reference"} } } } } }