Skip to content

[4.1] SR-7017: JSONDecoder will decode booleans as numbers. #1451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 22, 2018

Conversation

spevans
Copy link
Contributor

@spevans spevans commented Feb 21, 2018

  • If an NSNumber was initialised from a boolean then dont allow it
    to be converted to a numeric value.

  • Use same boolean check as Foundation overlay method.

- If an NSNumber was initialised from a boolean then dont allow it
  to be converted to a numeric value.

- Use same boolean check as Foundation overlay method.
@parkera parkera self-assigned this Feb 22, 2018
@parkera parkera self-requested a review February 22, 2018 00:04
@parkera parkera removed their assignment Feb 22, 2018
@spevans
Copy link
Contributor Author

spevans commented Feb 22, 2018

@swift-ci please test

@spevans
Copy link
Contributor Author

spevans commented Feb 22, 2018

@swift-ci please test and merge

@swift-ci swift-ci merged commit 1266b8e into swiftlang:swift-4.1-branch Feb 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants