## Context We need a centralized utility to dynamically sanitize and join paths without aggressive encoding. --- ## 🗺️ Execution Plan - [ ] Open `src/imednet/utils/url.py`. - [ ] Create a new function `build_safe_path(base_path: str, *segments: Any) -> str`. - [ ] Implement logic using `httpx.URL("http://dummy").join(...)` to normalize the joined path segments natively. --- ## ✅ Definition of Done (Acceptance Criteria) - [ ] `build_safe_path` function exists in `src/imednet/utils/url.py`. - [ ] Function accepts a base path and any number of segment arguments. - [ ] Function strips double slashes and outputs an unquoted, normalized relative path.
Context
We need a centralized utility to dynamically sanitize and join paths without aggressive encoding.
🗺️ Execution Plan
src/imednet/utils/url.py.build_safe_path(base_path: str, *segments: Any) -> str.httpx.URL("http://dummy").join(...)to normalize the joined path segments natively.✅ Definition of Done (Acceptance Criteria)
build_safe_pathfunction exists insrc/imednet/utils/url.py.