Swagger Codegen iOS Assessment

By Alexander Scanlan

November 25, 2016 at 11:14

dev swagger ios

Ref: Android Assessment

The following is an assessment of using Swagger when developing iOS apps.

Observations

Conclusion

The codegen is pretty robust but this comes at the cost of complexity. It would definitely speed up dev time initially but might hinder progress later in the project as new devs come and go.

Jason had a good point in thinking of the codegen not as our code but an external lib, a black box where we just make api calls in which case the complexity of the code doesn’t matter. One thing he did suggest was using the networking code and using another tool to generate the model classes from JSON, one which will actually respect the Optionals and create code in the conventional way

It’s a balancing act of saving time at the cost of reliability/maintainability/conventions. I think it’s more viable on iOS than it is on Android, whether it’s worth having it used on one platform and not the other is another question altogether.

Last updated: November 25, 2016 at 11:14