Skip to content

[android] Make all models implement 'Serializable'#3488

Closed
dylanmckay wants to merge 1 commit intoswagger-api:masterfrom
dylanmckay:serializable
Closed

[android] Make all models implement 'Serializable'#3488
dylanmckay wants to merge 1 commit intoswagger-api:masterfrom
dylanmckay:serializable

Conversation

@dylanmckay
Copy link
Copy Markdown

This allows the models to be passed to Activity objects when creating them,

@cbornet
Copy link
Copy Markdown
Contributor

cbornet commented Jul 31, 2016

In java generators this is an option.

@dylanmckay
Copy link
Copy Markdown
Author

It doesn't look like this is supported by Android, is that correct?

If not, I can add it.

@wing328
Copy link
Copy Markdown
Contributor

wing328 commented Aug 1, 2016

@dylanmckay yes please. Here is the related-code: https://github.com/swagger-api/swagger-codegen/search?l=java&q=serializableModel&utf8=%E2%9C%93

and then you can use the {{#serializableModel}} ... {{/serializableModel}} tag in the template :

{{#serializableModel}}import java.io.Serializable;{{/serializableModel}}

@wing328
Copy link
Copy Markdown
Contributor

wing328 commented Aug 8, 2016

@dylanmckay may I know if you need any help adding the option?

@wing328
Copy link
Copy Markdown
Contributor

wing328 commented Oct 6, 2016

Add ed via #3933 instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants