Comments (5)
Hi @ericlewis! There doesn’t appear to be any decoding code in your example above that would throw. Can you provide a full sample that reproduces the issue? There are definitely some gotchas around codability, some of which we can’t work around when it comes to coding containers, but if there is a bug we can fix we’d love to know!
from swift-tagged.
This is currently a Swift limitation in which only string and integer keys properly encode/decode into dictionaries. A fix has been proposed and accepted into Swift: https://github.com/apple/swift-evolution/blob/main/proposals/0320-codingkeyrepresentable.md
from swift-tagged.
Ah! Seems like that is the case then @mbrandonw.
from swift-tagged.
@stephencelis it just using a JSONDecoder.decode(Gist.self, from: data)
. Nothing fancy. Brandon's reply seems to be the case.
from swift-tagged.
@ericlewis That was one of the issues around decoding containers I was alluding to, just wanted to confirm what data
was beforehand :)
from swift-tagged.
Related Issues (15)
- Are consumers able to override default Codable conditional conformances? HOT 2
- Add Info.plist
- Unused dependency in Package.swift? HOT 6
- Deploy to CocoaPods HOT 2
- Custom date decoding issue HOT 5
- Decodable issue when using Tagged type as key in Dictionary HOT 1
- Does `ExpressiblebyArrayLiteral` code still need to be commented out? HOT 2
- Has anyone been able to get this library working with SQLite.swift? HOT 6
- New Release? HOT 2
- [Remove me]
- CodingKeyRepresentable Conformance HOT 1
- Support `SignedInteger` where `RawValue: SignedInteger`
- Issue building with Carthage when targeting older iOS SDK
- Conform to EntityIdentifierConvertible HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift-tagged.