-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generic Webhook: JSON array in parameter #399
Comments
No all values are strings, so you would never get an actual array in the output. So, yeah, we could add a mechanism to allow you to specify that a field is an array, but it does start to sound like more complexity than I would like to have in a service that is inherently untestable... |
@piksel That is a reasonable concern. One thought I had for a less invasive solution would be a prefix to disable the auto quoting and escaping, something like Another possibility might be making a service specifically for the signal-cli-rest-api that just uses the generic webhook service in JSON mode but wraps the recipients parameter(s) in a list before generating the json string output. |
Yeah, adding a new service is probably a better solution. I'll give it a shot the next time I get some spare time! |
Is it possible to place a JSON array in a generic webhook url parameter?
I know this teeters on madness and encoding arbitrary JSON, but with the new
$data=value
syntax introduced in #377 it is almost possible to connect shoutrrr to a signal-cli-rest-api instance as discussed in #66 (comment). The minimal JSON payload (swagger ref) is:A shoutrrr url like
Produces
Which would be perfect except for the quoting / escaping on the recipients parameter.
The text was updated successfully, but these errors were encountered: