require id properties to be at least a one character

This commit is contained in:
Joel Wetzell
2026-02-13 21:46:46 -06:00
parent 87e6b09156
commit 11e25ab8f7
2 changed files with 38 additions and 19 deletions

View File

@@ -11,7 +11,8 @@
"title": "HTTPClientModule", "title": "HTTPClientModule",
"properties": { "properties": {
"id": { "id": {
"type": "string" "type": "string",
"minLength": 1
}, },
"type": { "type": {
"const": "http.client" "const": "http.client"
@@ -25,7 +26,8 @@
"title": "HTTPServerModule", "title": "HTTPServerModule",
"properties": { "properties": {
"id": { "id": {
"type": "string" "type": "string",
"minLength": 1
}, },
"type": { "type": {
"const": "http.server" "const": "http.server"
@@ -51,7 +53,8 @@
"title": "TimeIntervalModule", "title": "TimeIntervalModule",
"properties": { "properties": {
"id": { "id": {
"type": "string" "type": "string",
"minLength": 1
}, },
"type": { "type": {
"const": "time.interval" "const": "time.interval"
@@ -75,7 +78,8 @@
"title": "TimeTimerModule", "title": "TimeTimerModule",
"properties": { "properties": {
"id": { "id": {
"type": "string" "type": "string",
"minLength": 1
}, },
"type": { "type": {
"const": "time.timer" "const": "time.timer"
@@ -99,7 +103,8 @@
"title": "MIDIInputModule", "title": "MIDIInputModule",
"properties": { "properties": {
"id": { "id": {
"type": "string" "type": "string",
"minLength": 1
}, },
"type": { "type": {
"const": "midi.input" "const": "midi.input"
@@ -123,7 +128,8 @@
"title": "MIDIOutputModule", "title": "MIDIOutputModule",
"properties": { "properties": {
"id": { "id": {
"type": "string" "type": "string",
"minLength": 1
}, },
"type": { "type": {
"const": "midi.output" "const": "midi.output"
@@ -147,7 +153,8 @@
"title": "MQTTClientModule", "title": "MQTTClientModule",
"properties": { "properties": {
"id": { "id": {
"type": "string" "type": "string",
"minLength": 1
}, },
"type": { "type": {
"const": "mqtt.client" "const": "mqtt.client"
@@ -177,7 +184,8 @@
"title": "NATSClientModule", "title": "NATSClientModule",
"properties": { "properties": {
"id": { "id": {
"type": "string" "type": "string",
"minLength": 1
}, },
"type": { "type": {
"const": "nats.client" "const": "nats.client"
@@ -204,7 +212,8 @@
"title": "PSNClientModule", "title": "PSNClientModule",
"properties": { "properties": {
"id": { "id": {
"type": "string" "type": "string",
"minLength": 1
}, },
"type": { "type": {
"const": "psn.client" "const": "psn.client"
@@ -218,7 +227,8 @@
"title": "SerialClientModule", "title": "SerialClientModule",
"properties": { "properties": {
"id": { "id": {
"type": "string" "type": "string",
"minLength": 1
}, },
"type": { "type": {
"const": "serial.client" "const": "serial.client"
@@ -245,7 +255,8 @@
"title": "SIPCallServerModule", "title": "SIPCallServerModule",
"properties": { "properties": {
"id": { "id": {
"type": "string" "type": "string",
"minLength": 1
}, },
"type": { "type": {
"const": "sip.call.server" "const": "sip.call.server"
@@ -285,7 +296,8 @@
"title": "SIPDTMFServerModule", "title": "SIPDTMFServerModule",
"properties": { "properties": {
"id": { "id": {
"type": "string" "type": "string",
"minLength": 1
}, },
"type": { "type": {
"const": "sip.dtmf.server" "const": "sip.dtmf.server"
@@ -330,7 +342,8 @@
"title": "TCPClientModule", "title": "TCPClientModule",
"properties": { "properties": {
"id": { "id": {
"type": "string" "type": "string",
"minLength": 1
}, },
"type": { "type": {
"const": "net.tcp.client" "const": "net.tcp.client"
@@ -363,7 +376,8 @@
"title": "TCPServerModule", "title": "TCPServerModule",
"properties": { "properties": {
"id": { "id": {
"type": "string" "type": "string",
"minLength": 1
}, },
"type": { "type": {
"const": "net.tcp.server" "const": "net.tcp.server"
@@ -397,7 +411,8 @@
"title": "UDPClientModule", "title": "UDPClientModule",
"properties": { "properties": {
"id": { "id": {
"type": "string" "type": "string",
"minLength": 1
}, },
"type": { "type": {
"const": "net.udp.client" "const": "net.udp.client"
@@ -426,7 +441,8 @@
"title": "UDPMulticastModule", "title": "UDPMulticastModule",
"properties": { "properties": {
"id": { "id": {
"type": "string" "type": "string",
"minLength": 1
}, },
"type": { "type": {
"const": "net.udp.multicast" "const": "net.udp.multicast"
@@ -455,7 +471,8 @@
"title": "UDPServerModule", "title": "UDPServerModule",
"properties": { "properties": {
"id": { "id": {
"type": "string" "type": "string",
"minLength": 1
}, },
"type": { "type": {
"const": "net.udp.server" "const": "net.udp.server"

View File

@@ -8,13 +8,15 @@
"type": "object", "type": "object",
"properties": { "properties": {
"input": { "input": {
"type": "string" "type": "string",
"minLength": 1
}, },
"processors": { "processors": {
"$ref": "https://showbridge.io/processors.schema.json" "$ref": "https://showbridge.io/processors.schema.json"
}, },
"output": { "output": {
"type": "string" "type": "string",
"minLength": 1
} }
}, },
"required": ["input", "output"] "required": ["input", "output"]