Closed bddq closed 2 years ago
Bug introduced in #57
Why from this PR bool are 1 or 0 in json instead of true and false. Looks like it is intended because you have modified the tests about that.
I didn't find any clue about why all tests are ok on iOS but not on Linux. Maybe you can help me to understand.
You can check tests results on the PR.
This PR broke the tests in my package that relies on this one.
Issue occurred when I used AnyCodable between ObjC and Swift code with
NSNumber
.Following ObjC code:
@(700000004)
Encoded value in Swift:
9988
Because
encode(nsnumber: container:)
appliedcontainer.encode(nsnumber.int16Value)
instead ofcontainer.encode(nsnumber.int32Value)
.There was an error in the switch. I checked on Apple documentation and updated accordingly.