-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
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
CB not creating the outer init correctly. #19
Comments
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. |
Also has two further errors lower down: let messages: [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. |
@EdHasted The NASAJSON has some parts that Baby can not handle.
I'm sorry that Baby is not strong enough to infer this JSON. |
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. |
NASAJSON.txt
Firstly NIX for a great App, awesome isn't a word I use that often being a lot older than you but a very impressive piece of work, many thanks.
Attached is some very typical NASA JSON from their public interfaces. It's actually relatively simple and well behaved compared to what you can request :-)
I am taking this and then running it through CuteBaby to generate the structure off the JSON.
Towards the bottom of the output CB has two errors:-
I think 2. is meant to be the init for NewModel.
I am Decodable(ing) all the structs and everything else is fine although the array is being handled piecemeal.
Could I have your thoughts?
Many thanks,
Ed Hasted
The text was updated successfully, but these errors were encountered: