Skip to content

Commit

Permalink
Merge pull request #531 from mmyslyvtsev/mojo-datetime-types
Browse files Browse the repository at this point in the history
Adding date-time types to Maven plugin mojo configuration
  • Loading branch information
joelittlejohn committed Mar 17, 2016
2 parents a2c538d + 296b83c commit f8ec43a
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,31 @@ public class Jsonschema2PojoMojo extends AbstractMojo implements GenerationConfi
*/
private boolean useJodaLocalTimes = false;

/**
* What type to use instead of string when adding string type fields of
* format date-time to generated Java types.
*
* @parameter expression="${jsonschema2pojo.dateTimeType}"
* @since 0.4.22
*/
private String dateTimeType = null;

/**
* What type to use instead of string when adding string type fields of
* format time (not date-time) to generated Java types.
*
* @parameter expression="${jsonschema2pojo.timeType}"
* @since 0.4.22
*/
private String timeType = null;

/**
* What type to use instead of string when adding string type fields of
* format date (not date-time) to generated Java types.
*
* @parameter expression="${jsonschema2pojo.dateType}"
* @since 0.4.22
*/
private String dateType = null;

/**
Expand Down

0 comments on commit f8ec43a

Please sign in to comment.