Skip to content

alexkvs/openapi-generator-cli-usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

openapi-generator-cli-usage

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 { }

Annotation that can be used to ignore processing of JSON properties read (during deserialization).

Example:
@JsonIgnoreProperties(ignoreUnknown = true)
public class YouGenareatedDto { }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published