Git Product home page Git Product logo

Comments (4)

EdHasted avatar EdHasted commented on June 19, 2024

Hi - I have run this with the Codable option ticked (doh) but it still doesn't create the Init for NewModel so you still get a "Type 'NewModel' does not conform to protocol 'Decodable'" error.

from baby.

EdHasted avatar EdHasted commented on June 19, 2024

Also has two further errors lower down:

let messages: [Any] //TODO: Specify the type to conforms Decodable protocol
let time: [Any] //TODO: Specify the type to conforms Decodable protocol

If you // them out the process appears to work and compiles.

Think there is some minor modification to the code required - fantastic work.

from baby.

nixzhu avatar nixzhu commented on June 19, 2024

@EdHasted The NASAJSON has some parts that Baby can not handle.

  1. The ALLSKY_SFC_SW_DWN is a dictionary, but maybe have different keys for different response.
  2. The messages is a array, but with no items in it.
  3. The time is a array with sub array as it's item (which item's type is String or Double)

I'm sorry that Baby is not strong enough to infer this JSON.

from baby.

EdHasted avatar EdHasted commented on June 19, 2024

Many thanks - still think it's an excellent App. Can you recommend any products that might be able to generate the Swift code as I need a solution fast? Again many thanks.

from baby.

Related Issues (20)

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.