Giter Club home page Giter Club logo

Comments (5)

stephencelis avatar stephencelis commented on June 20, 2024

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.

mbrandonw avatar mbrandonw commented on June 20, 2024

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.

ericlewis avatar ericlewis commented on June 20, 2024

Ah! Seems like that is the case then @mbrandonw.

from swift-tagged.

ericlewis avatar ericlewis commented on June 20, 2024

@stephencelis it just using a JSONDecoder.decode(Gist.self, from: data). Nothing fancy. Brandon's reply seems to be the case.

from swift-tagged.

stephencelis avatar stephencelis commented on June 20, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.