JSON decoder not properly decoding `proxyType` in some projects
tjwio opened this issue Β· comments
Tim Wong commented
Context π΅οΈββοΈ
We have some Xcode projects that are generated by BUCK with proxyType
as a number instead of a string.
What π±
This means that the decodeIntIfPresent
will throw when it tries to decode it as a string and then bool. We hit this recently in one of our Xcode projects:
Error: typeMismatch(Swift.Bool, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "proxyType", intValue: nil)], debugDescription: "Expected to decode Bool but found a number instead.", underlyingError: nil))
Proposal π
PR here: #598