| 82 | } |
| 83 | |
| 84 | std::string option_text(const engine::io::json::Value & value) { |
| 85 | if (value.is_bool()) { |
| 86 | return value.as_bool() ? "true" : "false"; |
| 87 | } |
| 88 | if (value.is_number()) { |
| 89 | return engine::io::json::stringify_number(value.as_number()); |
| 90 | } |
| 91 | if (value.is_array()) { |
| 92 | return engine::io::json::stringify(value); |
| 93 | } |
| 94 | return value.as_string(); |
| 95 | } |
| 96 | |
| 97 | void set_required_option_from_request( |
| 98 | engine::runtime::TaskRequest & request, |
no test coverage detected