| 64 | const engine::io::json::Value & object, |
| 65 | const std::string & key, |
| 66 | std::string fallback) { |
| 67 | const auto * value = object.find(key); |
| 68 | return value == nullptr || value->is_null() ? std::move(fallback) : value->as_string(); |
| 69 | } |
| 70 | |
| 71 | bool workflow_has_field(const engine::io::json::Value & object, const std::string & key) { |
| 72 | const auto * value = object.find(key); |
no test coverage detected