mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
align schema of udp server with reality
This commit is contained in:
@@ -2,6 +2,7 @@ package module
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log/slog"
|
"log/slog"
|
||||||
@@ -40,6 +41,13 @@ func init() {
|
|||||||
Minimum: jsonschema.Ptr[float64](1024),
|
Minimum: jsonschema.Ptr[float64](1024),
|
||||||
Maximum: jsonschema.Ptr[float64](65535),
|
Maximum: jsonschema.Ptr[float64](65535),
|
||||||
},
|
},
|
||||||
|
"bufferSize": {
|
||||||
|
Title: "Buffer Size",
|
||||||
|
Type: "integer",
|
||||||
|
Minimum: jsonschema.Ptr[float64](1),
|
||||||
|
Maximum: jsonschema.Ptr[float64](65535),
|
||||||
|
Default: json.RawMessage("2048"),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Required: []string{"ip", "port"},
|
Required: []string{"ip", "port"},
|
||||||
AdditionalProperties: nil,
|
AdditionalProperties: nil,
|
||||||
|
|||||||
Reference in New Issue
Block a user