From 4e19de20075007ee7b040f364345e15d2ab51b44 Mon Sep 17 00:00:00 2001 From: breis Date: Thu, 23 Jul 2026 13:21:02 -0400 Subject: [PATCH] schema: alias #/$defs/instance onto #/$defs/camera The deployment compatibility guard and `edgecommons component validate` resolve a component's per-instance config through the fixed name `#/$defs/instance`. This adds a one-line $ref so the shape keeps its domain name (`camera`) while tooling can find it uniformly. No behavior change: the component reads no schema at runtime. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01LsX7cWVGLszurNYMVwMJGo --- config.schema.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.schema.json b/config.schema.json index 4017dfd..6c69042 100644 --- a/config.schema.json +++ b/config.schema.json @@ -186,6 +186,10 @@ } }, "$defs": { + "instance": { + "description": "The shape of one `component.instances[]` entry. Tooling resolves instance config through this fixed name; the definition lives under its domain name below.", + "$ref": "#/$defs/camera" + }, "camera": { "title": "One camera", "description": "One entry of `component.instances[]`. Each camera gets its own supervisor and connection lifecycle.",