Open ehyche opened 7 years ago
I have this new "swift4" language ready to go on a branch off of master. But I guess I need to get the proper permissions before I can push this branch up.
Note that you need an Xcode 9 beta in order to use the LearningAboutCodable.playground and the swift4 language.
@ehyche thanks for offering help to add the Swift4 generator π π π
Let us know if you need help with the PR.
cc @jaz-ah @Edubits @jaz-ah
@wing328 : Can you give me write access to the repo so that I can push my branch up?
@wing328 : ah, I just re-read the instructions for contributing. I need to first fork the repo.
Description
Swift 4 (announced at WWDC 2017 in June 2017) introduces some features which make serialization and deserialization in Swift much simpler:
I have written an Xcode playground which explores lots of details about the Codable protocol here:
https://github.com/ehyche/xcode-playgrounds
in the LearningAboutCodable.playground file.
So I have created a "swift4" language for swagger-codegen which greatly simplifies the mustache templates, and thus the generated models. Now, most models simply have the properties and that's it. For example, here is the Pet class:
Swagger-codegen version
I am proposing adding this to master. I have created the swift4 language on a branch, and will be creating a PR for it.
Command line used for generation
Steps to reproduce
New language.