mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
fix JSON schema of net.udp.server
This commit is contained in:
@@ -32,8 +32,9 @@ func init() {
|
|||||||
Type: "object",
|
Type: "object",
|
||||||
Properties: map[string]*jsonschema.Schema{
|
Properties: map[string]*jsonschema.Schema{
|
||||||
"ip": {
|
"ip": {
|
||||||
Title: "IP",
|
Title: "IP",
|
||||||
Type: "string",
|
Type: "string",
|
||||||
|
Default: json.RawMessage(`"0.0.0.0"`),
|
||||||
},
|
},
|
||||||
"port": {
|
"port": {
|
||||||
Title: "Port",
|
Title: "Port",
|
||||||
@@ -49,7 +50,7 @@ func init() {
|
|||||||
Default: json.RawMessage("2048"),
|
Default: json.RawMessage("2048"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Required: []string{"ip", "port"},
|
Required: []string{"port"},
|
||||||
AdditionalProperties: nil,
|
AdditionalProperties: nil,
|
||||||
},
|
},
|
||||||
New: func(moduleConfig config.ModuleConfig) (common.Module, error) {
|
New: func(moduleConfig config.ModuleConfig) (common.Module, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user