The batch file for generating code from JSON schema files.
Includes options for adding validation annotations to generated GTO's.
See:
OpenAPITools https://github.com/OpenAPITools/openapi-generator-cli
Config Options for Spring https://openapi-generator.tech/docs/generators/spring/
To suppress serializing properties with null values (using Jackson >2.0), you can anntotate generated DTO class with @JsonInclude.
Example:
@JsonInclude(value=JsonInclude.Include.NON_NULL)
public class YouGenareatedDto {
}
Example:
@JsonIgnoreProperties(ignoreUnknown = true)
public class YouGenareatedDto {
}