From 11e25ab8f72ea0765c3fb738c85380663cd5fbb0 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Fri, 13 Feb 2026 21:46:46 -0600 Subject: [PATCH] require id properties to be at least a one character --- schema/modules.schema.json | 51 +++++++++++++++++++++++++------------- schema/routes.schema.json | 6 +++-- 2 files changed, 38 insertions(+), 19 deletions(-) diff --git a/schema/modules.schema.json b/schema/modules.schema.json index 8618a2d..bc39564 100644 --- a/schema/modules.schema.json +++ b/schema/modules.schema.json @@ -11,7 +11,8 @@ "title": "HTTPClientModule", "properties": { "id": { - "type": "string" + "type": "string", + "minLength": 1 }, "type": { "const": "http.client" @@ -25,7 +26,8 @@ "title": "HTTPServerModule", "properties": { "id": { - "type": "string" + "type": "string", + "minLength": 1 }, "type": { "const": "http.server" @@ -51,7 +53,8 @@ "title": "TimeIntervalModule", "properties": { "id": { - "type": "string" + "type": "string", + "minLength": 1 }, "type": { "const": "time.interval" @@ -75,7 +78,8 @@ "title": "TimeTimerModule", "properties": { "id": { - "type": "string" + "type": "string", + "minLength": 1 }, "type": { "const": "time.timer" @@ -99,7 +103,8 @@ "title": "MIDIInputModule", "properties": { "id": { - "type": "string" + "type": "string", + "minLength": 1 }, "type": { "const": "midi.input" @@ -123,7 +128,8 @@ "title": "MIDIOutputModule", "properties": { "id": { - "type": "string" + "type": "string", + "minLength": 1 }, "type": { "const": "midi.output" @@ -147,7 +153,8 @@ "title": "MQTTClientModule", "properties": { "id": { - "type": "string" + "type": "string", + "minLength": 1 }, "type": { "const": "mqtt.client" @@ -177,7 +184,8 @@ "title": "NATSClientModule", "properties": { "id": { - "type": "string" + "type": "string", + "minLength": 1 }, "type": { "const": "nats.client" @@ -204,7 +212,8 @@ "title": "PSNClientModule", "properties": { "id": { - "type": "string" + "type": "string", + "minLength": 1 }, "type": { "const": "psn.client" @@ -218,7 +227,8 @@ "title": "SerialClientModule", "properties": { "id": { - "type": "string" + "type": "string", + "minLength": 1 }, "type": { "const": "serial.client" @@ -245,7 +255,8 @@ "title": "SIPCallServerModule", "properties": { "id": { - "type": "string" + "type": "string", + "minLength": 1 }, "type": { "const": "sip.call.server" @@ -285,7 +296,8 @@ "title": "SIPDTMFServerModule", "properties": { "id": { - "type": "string" + "type": "string", + "minLength": 1 }, "type": { "const": "sip.dtmf.server" @@ -330,7 +342,8 @@ "title": "TCPClientModule", "properties": { "id": { - "type": "string" + "type": "string", + "minLength": 1 }, "type": { "const": "net.tcp.client" @@ -363,7 +376,8 @@ "title": "TCPServerModule", "properties": { "id": { - "type": "string" + "type": "string", + "minLength": 1 }, "type": { "const": "net.tcp.server" @@ -397,7 +411,8 @@ "title": "UDPClientModule", "properties": { "id": { - "type": "string" + "type": "string", + "minLength": 1 }, "type": { "const": "net.udp.client" @@ -426,7 +441,8 @@ "title": "UDPMulticastModule", "properties": { "id": { - "type": "string" + "type": "string", + "minLength": 1 }, "type": { "const": "net.udp.multicast" @@ -455,7 +471,8 @@ "title": "UDPServerModule", "properties": { "id": { - "type": "string" + "type": "string", + "minLength": 1 }, "type": { "const": "net.udp.server" diff --git a/schema/routes.schema.json b/schema/routes.schema.json index 0485927..874dda8 100644 --- a/schema/routes.schema.json +++ b/schema/routes.schema.json @@ -8,13 +8,15 @@ "type": "object", "properties": { "input": { - "type": "string" + "type": "string", + "minLength": 1 }, "processors": { "$ref": "https://showbridge.io/processors.schema.json" }, "output": { - "type": "string" + "type": "string", + "minLength": 1 } }, "required": ["input", "output"]