mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-08-15 11:23:38 +00:00
Merge pull request #152 from jwetzell/fix/serial-client-schema
fix params schema for serial.client
This commit is contained in:
@@ -43,8 +43,13 @@ func init() {
|
||||
Title: "Baud Rate",
|
||||
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{}},
|
||||
},
|
||||
New: func(config config.ModuleConfig) (common.Module, error) {
|
||||
|
||||
Reference in New Issue
Block a user