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
https://github.com/apple/swift-corelibs-foundation/blob/f42e9af210a4cddba7b176165c005ffac5685a68/Sources/Foundation/URL.swift#L1041
struct Test: Codable { let url: URL? } let data = """ {"url": ""} """.data(using: .utf8)! // decode let decoder = JSONDecoder() do { let s = try decoder.decode(Test.self, from: data) } catch { // will throw "Invalid URL string." error }
The text was updated successfully, but these errors were encountered:
This seems to be working for me as of the 6.0 branch. It may also be related to #5001
Sorry, something went wrong.
No branches or pull requests
https://github.com/apple/swift-corelibs-foundation/blob/f42e9af210a4cddba7b176165c005ffac5685a68/Sources/Foundation/URL.swift#L1041
The text was updated successfully, but these errors were encountered: