Skip to content
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

Use sortedKeys option for JSON encoder #1219

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

plu
Copy link
Contributor

@plu plu commented Nov 9, 2023

A test case in CodableContextTests produced a failure here on Xcode 15.0.1, emitting a JSON document with different order of keys. Using the .sortedKeys option on JSONEncoder should help getting the same result on all machines.

@SourceryBot
Copy link

1 Error
🚫 Any changes to library code need a summary in the Changelog.

Generated by 🚫 Danger

@krzysztofzablocki krzysztofzablocki merged commit a69e548 into krzysztofzablocki:master Nov 9, 2023
2 of 3 checks passed
@plu plu deleted the fix_sorted_keys branch November 9, 2023 12:57
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