Q: how to extend Obj-C models created with swagger-codegen
10 views
Skip to first unread message
Valerio Santinelli
unread,
Nov 14, 2018, 4:50:59 AM11/14/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Swagger
I have used swagger-codegen to generate the client for my API. I need to extend some of the models because I need to make some properties transform to nil when serializing to JSON and some other properties (some dates) to follow a different date format than the default. Is that achievable without modifying the actual models generated by swagger so that I can regenerate them as needed and avoid losing my changes?