Bug fixes, Nullability, and Flow Support
Version 1.1
New CLI options
--print_deps - Just print the path to the dependent schemas necessary to generate the schemas provided and exit.
--no_recursive - Don't generate files recursively. Only generate the one file I ask for.
--only_runtime - Only generate runtime files and exit.
--lang - Comma separated list of target language(s) for generating code. Default: "objc"
--help - Show this text and exit.
Flow Support
This release contains an early experimental implementation of Flow type generation. Now your schema files can be used to generate multiple languages by using the --lang command line option.
How do I use it?
- Try it out by specifying
--lang flow - Generate both ObjC and Flow
--lang flow,objc
More documentation on Flow is coming soon but you can see the current output in the Examples.
Objective-C Generation
- Nullability: Specifying a field as
requiredwill now influence if it isnonnullornullable. Previously all methods werenullable. - New Method:
"- (NSDictionary *)dictionaryRepresentation"allows your models to output a dictionary representation of themselves. This is intended to be the inverse ofinitWithModelDictionary. - Bug fixes: Small number of fixes to the generated code have been made.
Notable commits in this release:
864abac Nullability support in Plank: (#64)
6808341 Add dictionary representation to Objc models (#67)
fc967d5 Add tests for generated models to the integration tests pipeline (#69)
116b818 Copy the value to an ivar backed by a copy property (#72)
0d50564 Add custom indentation support (#61)
37a6bc3 Don't camel case the description for EnumValue by default (#60)
12db0da Add Flow Type Support (#57)
6d226ec Fix lint warnings (#58)
332af42 Use relative schema urls internally (#59)
46d340f Fix critical bug where deep equality comparison contained a pointer equality (#50)
658c73f Add initial support for integration testing. (#48)
aba7ecc Remove FilePrinter protocol (#46)
86873d0 Update to newest CI (#44)
69e6d20 Add lang attribute to provide future flexibility for additional languages in (#42)
d69c8e6 Simplify initWithModelDictionary and improve performance (#40)
e8d35e3 Update Plank to Swift 3.1 (#39)
38f6da3 Makes the code more readable via early returns / fatal errors in guards (#35)
9fefe3a Support for no_recursive and only_runtime flags. Fix print_deps output (#32)
120e4d2 Add cli option for printing the dependencies of a schema (#30)