mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-09-10 15:39:25 +00:00
fix params schema for serial.client
This commit is contained in:
@@ -43,8 +43,13 @@ func init() {
|
|||||||
Title: "Baud Rate",
|
Title: "Baud Rate",
|
||||||
Type: "integer",
|
Type: "integer",
|
||||||
},
|
},
|
||||||
|
"framing": {
|
||||||
|
Title: "Framing Method",
|
||||||
|
Type: "string",
|
||||||
|
Enum: []any{"LF", "CR", "CRLF", "SLIP", "RAW"},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Required: []string{"port", "baudRate"},
|
Required: []string{"port", "baudRate", "framing"},
|
||||||
AdditionalProperties: &jsonschema.Schema{Not: &jsonschema.Schema{}},
|
AdditionalProperties: &jsonschema.Schema{Not: &jsonschema.Schema{}},
|
||||||
},
|
},
|
||||||
New: func(config config.ModuleConfig) (common.Module, error) {
|
New: func(config config.ModuleConfig) (common.Module, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user