Open
Conversation
TParizek
previously approved these changes
Jan 16, 2026
TParizek
left a comment
There was a problem hiding this comment.
Good catch, thanks for fixing the bug!
I see that tests are failing on CI with iOS 18 runtime. Would you mind please bumping test target iOS to iOS 26 to resolve the issue?
cejanen
previously approved these changes
Jan 16, 2026
Contributor
cejanen
left a comment
There was a problem hiding this comment.
🚁
I would like to see running CI, currently we fix it on all projects
e117064
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objective of this PR
Solve an issue which broke url parameter encoding in a pretty sneaky manner.
Example
Let's say you have a router like so
Looks good, but when we run it we find out that the resulting parameter would get encoded as
limit=Optional(10)instead oflimit=10.Now you might say okay let's fix it by mapping the dictionary values to non optionals like so:
Nice! Everything works now.
After some time there's a new requirement to add another parameter of type String to the request like so:
Everything should work right?
Wrong! The resulting parameters are once again being encoded as
limit=Optional(10)&filter=Optional(test).What changed?!
Before the dictionary got resolved as
[String: Int?]by the compiler before applying thecompactMapValues, however now we have multiples types in the dictionary hence it gets resolved as[String: Any]so thecompactMapValuesdoesn't do anything.Solution
During encoding unwrap the Any type in case it's optional by using mirroring.