You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I am trying to create model and pojo class using Swager code generation, I wanted to have @JsonInclude(JsonInclude.Include.NON_NULL) annotation in some module but not all modules Can we have this as configuration in pom.xml file for the module where we need this?
Swagger-codegen version
3.0.3
Swagger maven plugin version
3.0.3
Language
jaxrs-jersey
JSON include , definition.yaml
Swagger declaration file content or url
We added this to pojo.mustache class
{{#notNullJacksonAnnotation}}
@JsonInclude(JsonInclude.Include.NON_NULL)
{{/notNullJacksonAnnotation}}
We added this to model.mustache class
import com.fasterxml.jackson.annotation.JsonInclude;
The text was updated successfully, but these errors were encountered:
Description
When I am trying to create model and pojo class using Swager code generation, I wanted to have @JsonInclude(JsonInclude.Include.NON_NULL) annotation in some module but not all modules Can we have this as configuration in pom.xml file for the module where we need this?
Swagger-codegen version
3.0.3
Swagger maven plugin version
3.0.3
Language
jaxrs-jersey
JSON include , definition.yaml
Swagger declaration file content or url
We added this to pojo.mustache class
{{#notNullJacksonAnnotation}}
@JsonInclude(JsonInclude.Include.NON_NULL)
{{/notNullJacksonAnnotation}}
We added this to model.mustache class
import com.fasterxml.jackson.annotation.JsonInclude;
The text was updated successfully, but these errors were encountered: