Open wmmc88 opened 4 months ago
thanks for reporting will check. i wonder why numbers are ok but bools are not...
confirmed its an issue. the actually fix it, i think i'll have to define a custom deserializer for any non string primitive field that knows to take original type and string type.
Describe The Bug
cm_plugin_run_custom_task
will fail to run a task json if it containsprivate
field. It looks like its because when parsing${task.as_json}
,json_parse
will silently convert the boolean value to a string. This seems to happen regardless if I use--collection
or not.A workaround I'm currently using is having the plugin call
unset taskjson.private
, but im not sure what other boolean fields this issue could be affecting.To Reproduce
Error Stack
Code Sample