-
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Validation Error When Creating Endpoint
json_string_input
Must Be Boolean
Issue Description
When creating an endpoint via API, the json_string_input
field inside settings
is incorrectly validated if passed as an integer (0
or 1
). This causes the following error:
PluginDaemonBadRequestError: failed to validate settings: setting json_string_input is not a boolean
Example Payload Causing Error
{
"plugin_unique_identifier": "perzeuss/webhook:0.5.0@...",
"settings": {
"json_string_input": 0,
"raw_data_output": 0,
"explicit_inputs": false,
...
},
"name": "Test"
}
Solution
Pass the fields json_string_input
and raw_data_output
as boolean values (true
or false
), not integers (0
or 1
). This fixes the issue.
Corrected Payload Example
{
"plugin_unique_identifier": "perzeuss/webhook:0.5.1@...",
"settings": {
"json_string_input": false,
"raw_data_output": false,
"explicit_inputs": false,
...
},
"name": "test"
}
Request
Please update the plugin validation logic to strictly enforce boolean types for these fields. This will help avoid confusion and prevent API errors.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working