OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
The Java classes of the model generated by OpenAPI are perfect candidates to be Java Serializable. Unfortunate I did not find a way to make the generated model classes implement Serializable interface.
Without serialization it is not possible to store model objects as part of the JEE/Web-Container Session. It also restricts the usage of these objects as part of Java Exceptions and inside other serializable classes.
On the other hand I do not see any disadvantages of being serializable in case of DTO objects.
The Java classes of the model generated by OpenAPI are perfect candidates to be Java Serializable. Unfortunate I did not find a way to make the generated model classes implement Serializable interface.
Without serialization it is not possible to store model objects as part of the JEE/Web-Container Session. It also restricts the usage of these objects as part of Java Exceptions and inside other serializable classes.
On the other hand I do not see any disadvantages of being serializable in case of DTO objects.