fix JSON schema of net.udp.server

This commit is contained in:
Joel Wetzell
2026-03-26 18:56:03 -05:00
parent e2e9fb5eb6
commit 882af2948a

View File

@@ -32,8 +32,9 @@ func init() {
Type: "object",
Properties: map[string]*jsonschema.Schema{
"ip": {
Title: "IP",
Type: "string",
Title: "IP",
Type: "string",
Default: json.RawMessage(`"0.0.0.0"`),
},
"port": {
Title: "Port",
@@ -49,7 +50,7 @@ func init() {
Default: json.RawMessage("2048"),
},
},
Required: []string{"ip", "port"},
Required: []string{"port"},
AdditionalProperties: nil,
},
New: func(moduleConfig config.ModuleConfig) (common.Module, error) {