| 48 | }; |
| 49 | |
| 50 | std::string workflow_string(const engine::io::json::Value & object, const std::string & key) { |
| 51 | const auto * value = object.find(key); |
| 52 | if (value == nullptr || value->is_null()) { |
| 53 | throw std::runtime_error("workflow object missing required string field: " + key); |
| 54 | } |
| 55 | return value->as_string(); |
| 56 | } |
| 57 | |
| 58 | std::istringstream workflow_buffer(const engine::io::json::Value & object, const std::string & key) { |
| 59 | const auto str = workflow_string(object, key); |
no test coverage detected