mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-08-18 20:53:56 +00:00
add description information to params for processors
This commit is contained in:
@@ -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"},
|
||||
|
||||
Reference in New Issue
Block a user