made timestamp generation enabled by default

This commit is contained in:
Tony Tam
2016-04-03 14:36:23 -06:00
parent 034ed5d149
commit ee08d16ae5
13 changed files with 17 additions and 19 deletions

View File

@@ -1,11 +1,9 @@
package io.swagger.codegen.options;
import io.swagger.codegen.Codegen;
import com.google.common.collect.ImmutableMap;
import io.swagger.codegen.CodegenConstants;
import io.swagger.codegen.languages.JavaClientCodegen;
import com.google.common.collect.ImmutableMap;
import java.util.Map;
public class JavaOptionsProvider implements OptionsProvider {
@@ -46,6 +44,7 @@ public class JavaOptionsProvider implements OptionsProvider {
.put(CodegenConstants.SERIALIZE_BIG_DECIMAL_AS_STRING, "true")
.put(JavaClientCodegen.USE_RX_JAVA, "false")
.put(JavaClientCodegen.DATE_LIBRARY, "joda")
.put("hideGenerationTimestamp", "true")
.build();
}

View File

@@ -27,8 +27,7 @@ public class JaxRSServerOptionsProvider extends JavaOptionsProvider {
builder.putAll(options)
.put(CodegenConstants.IMPL_FOLDER, IMPL_FOLDER_VALUE)
//.put(JavaJaxRSJersey1ServerCodegen.DATE_LIBRARY, "joda") //java.lang.IllegalArgumentException: Multiple entries with same key: dateLibrary=joda and dateLibrary=joda
.put("title", "Test title")
.put("showGenerationTimestamp", "true");
.put("title", "Test title");
return builder.build();
}