add description information to params for processors

This commit is contained in:
Joel Wetzell
2026-06-01 17:55:30 -05:00
parent 56566cf666
commit 73905e1274
32 changed files with 204 additions and 142 deletions
+11 -8
View File
@@ -20,18 +20,21 @@ func init() {
Type: "object",
Properties: map[string]*jsonschema.Schema{
"path": {
Title: "Path",
Type: "string",
Title: "Path",
Description: "path to the WASM plugin to load",
Type: "string",
},
"function": {
Title: "Function",
Type: "string",
Default: json.RawMessage(`"process"`),
Title: "Function",
Description: "exported function to call on the WASM plugin",
Type: "string",
Default: json.RawMessage(`"process"`),
},
"enableWasi": {
Title: "Enable WASI",
Type: "boolean",
Default: json.RawMessage("false"),
Title: "Enable WASI",
Description: "whether to enable WASI when running the WASM plugin",
Type: "boolean",
Default: json.RawMessage("false"),
},
},
Required: []string{"path"},