jersey2-template.model.mustache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of connect-openapi-jersey2 Show documentation
Show all versions of connect-openapi-jersey2 Show documentation
jersey2 generator from openapi 3.x spec files. Changing to openapitools dependencies.
package {{package}};
import java.util.Objects;
{{#imports}}import {{import}};
{{/imports}}
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonValue;
{{#serializableModel}}import java.io.Serializable;{{/serializableModel}}
{{#models}}
{{#model}}{{#description}}
/**
* {{description}}
**/{{/description}}
{{#isEnum}}{{>enumOuterClass}}{{/isEnum}}
{{^isEnum}}
@JsonInclude(value = JsonInclude.Include.NON_NULL)
{{^suppressIgnoreUnknown}}@JsonIgnoreProperties(ignoreUnknown = true){{/suppressIgnoreUnknown}}{{>pojo}}{{/isEnum}}
{{/model}}
{{/models}}