Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Boolean encoding change in 0.6.3 #67

Open
mattmassicotte opened this issue Mar 19, 2022 · 1 comment
Open

Boolean encoding change in 0.6.3 #67

mattmassicotte opened this issue Mar 19, 2022 · 1 comment

Comments

@mattmassicotte
Copy link

Hello!

I've noticed that in 0.6.3, the encoding of boolean types has changed in certain circumstances. I've narrowed down the code causing me issues to this:

var options: AnyCodable {
    return [
        "key": true,
    ]
}

In < 0.6.3, this would result in the JSON data {"key": true}. In 0.6.3, it produces {"key": 1}.

@pyrou
Copy link

pyrou commented Apr 9, 2022

ping @bddq
relates to #65

minacle added a commit that referenced this issue Apr 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants