File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
modules/swagger-codegen/src/test/java/io/swagger/codegen/options Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ public class SpringOptionsProvider extends JavaOptionsProvider {
26
26
public static final String DEFAULT_INTERFACES = "true" ;
27
27
public static final String NOT_NULL_JACKSON_ANNOTATION = "false" ;
28
28
public static final String IGNORE_UNKNOWN_JACKSON_ANNOTATION = "false" ;
29
+ public static final String DATE_PATTERN_VALUE = "yyyy-MM-dd" ;
30
+ public static final String DATE_TIME_PATTERN_VALUE = "yyyy-MM-dd'T'HH:mm:ss.SSS" ;
29
31
30
32
@ Override
31
33
public String getLanguage () {
@@ -54,6 +56,8 @@ public Map<String, String> createOptions() {
54
56
options .put (SpringCodegen .DEFAULT_INTERFACES , DEFAULT_INTERFACES );
55
57
options .put (SpringCodegen .NOT_NULL_JACKSON_ANNOTATION ,NOT_NULL_JACKSON_ANNOTATION );
56
58
options .put (SpringCodegen .IGNORE_UNKNOWN_JACKSON_ANNOTATION , IGNORE_UNKNOWN_JACKSON_ANNOTATION );
59
+ options .put (SpringCodegen .DATE_PATTERN , DATE_PATTERN_VALUE );
60
+ options .put (SpringCodegen .DATE_TIME_PATTERN , DATE_TIME_PATTERN_VALUE );
57
61
58
62
return options ;
59
63
}
You can’t perform that action at this time.
0 commit comments