Skip to content

Commit

Permalink
Added year to default generator (#6196)
Browse files Browse the repository at this point in the history
  • Loading branch information
ToreJohansson authored and wing328 committed Jul 28, 2017
1 parent cd43ad8 commit 68966ac
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ private void configureGeneratorProperties() {
config.preprocessSwagger(swagger);
config.additionalProperties().put("generatorVersion", ImplementationVersion.read());
config.additionalProperties().put("generatedDate", DateTime.now().toString());
config.additionalProperties().put("generatedYear", String.valueOf(DateTime.now().getYear()));
config.additionalProperties().put("generatorClass", config.getClass().getName());
config.additionalProperties().put("inputSpec", config.getInputSpec());
if (swagger.getVendorExtensions() != null) {
Expand Down

0 comments on commit 68966ac

Please sign in to comment.