-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default Constructor Generation in Payload Classes - Spring Boot #332
Comments
Thank you for collaborating with the project by giving us feedback! Cheers! |
The sngular/scs-multiapi-plugin Gradle plugin vesion used is id 'com.sngular.scs-multiapi-gradle-plugin' version '5.3.5' |
Hi @malon875875, @WZHMIJJ, That is odd because we are using the pattern builder in our generated POJOS, also if you are using Lombok @builder annotation is added. Can we get an example of the API you are trying to build? Cheers |
Yes, the builder is truly added, but the problem arrises that inside of Spring it does not instantiate the object. The problem is because of the domain object missing a default constructor and thus Jackson throws an internal exception. |
Problem
Solution
Future Reference |
Hi, I just refactor all the DTOs in order to be the same for all generators. May you check new release please? |
I have integrated the
sngular/scs-multiapi-plugin
Gradle plugin into my Spring Boot application to generate POJOs for AVRO schemas to be used with Pulsar. However, I encountered an issue where the generated domain objects lack a default constructor, leading to internal exceptions when using Jackson to deserialize the objects in the Pulsar listener.I believe the plugin could be enhanced or maybe even has a posibility in one of two ways to address this issue:
Adding either of these features would greatly improve the compatibility of the plugin with Spring Boot Pulsar Starter.
I kindly request the addition of this feature to the plugin to improve its usability in various environments. Thank you for your consideration.
The text was updated successfully, but these errors were encountered: