Function ros2_medkit_gateway::handlers::flatten_validator_error

Function Documentation

inline ErrorInfo ros2_medkit_gateway::handlers::flatten_validator_error(const std::variant<ErrorInfo, http::Forwarded> &err)

Collapse a validate_entity_for_route validator error into a single ErrorInfo: the local-error branch passes through, while the Forwarded branch becomes the framework-internal sentinel that the RouteRegistry wrapper recognises and skips error rendering for. Shared by every typed handler (was duplicated per handler TU).