Merge pull request #152 from jwetzell/fix/serial-client-schema

fix params schema for serial.client
This commit is contained in:
Joel Wetzell
2026-05-17 07:54:59 -05:00
committed by GitHub
+6 -1
View File
@@ -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) {