Closed baywet closed 1 year ago
@baywet Submitted a PR with a slightly more generic name CopyStringMap
so that it can be used in other sections of the code without causing confusion
@rkodev thanks for adding the necessary method, just to be clear, I'm expecting you to make the generation change after #2406 gets merged. You might want to reopen this issue.
In indexers or "navigation function with parameters" we need to copy the current path parameters, add to that the additional parameters for the current segment before we pass it on to the next request builder. While the current solution works. It repeats a lot of code
Could be easily optimized to
since the id parameter can be multiple parameters and they can have a different type, and due to the limitation of generic types, optimizing further might require a significant effort.
depends on #2406