We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Docker (swift:4.2.1)
md5: c69edd87f0b7da0c9efa933434e66bce
Issue Description:
The following code generates different output on macOS and Linux. I am using Swift 4.2.1
import Foundation struct JsonShit: Codable { let whatTheFuck: String } let shit = JsonShit(whatTheFuck: "???") let encoder = JSONEncoder() encoder.keyEncodingStrategy = .convertToSnakeCase try print(String(data: encoder.encode(shit), encoding: .utf8))
The output generated on macOS:
"Optional("{"what_the_fuck":"???"}")"
The output generated on Linux:
"Optional("{"whatTheFuck":"???"}")"
The text was updated successfully, but these errors were encountered:
cc @millenomi
Sorry, something went wrong.
#1875
Fixed merged into swift-5.0-branch
swift-5.0-branch
spevans
No branches or pull requests
Environment
Docker (swift:4.2.1)
Additional Detail from JIRA
md5: c69edd87f0b7da0c9efa933434e66bce
Issue Description:
The following code generates different output on macOS and Linux. I am using Swift 4.2.1
The output generated on macOS:
"Optional("{"what_the_fuck":"???"}")"
The output generated on Linux:
"Optional("{"whatTheFuck":"???"}")"
The text was updated successfully, but these errors were encountered: