Skip to content

Commit 7451c61

Browse files
committed
adjust templates to updated jmustache semantics
1 parent 1ed3758 commit 7451c61

File tree

535 files changed

+829
-109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

535 files changed

+829
-109
lines changed

modules/openapi-generator/src/main/resources/Java/ApiClient.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ import {{invokerPackage}}.auth.OAuth;
6464
{{/hasOAuthMethods}}
6565

6666
{{>generatedAnnotation}}
67+
6768
public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
6869
protected Map<String, String> defaultHeaderMap = new HashMap<String, String>();
6970
protected Map<String, String> defaultCookieMap = new HashMap<String, String>();

modules/openapi-generator/src/main/resources/Java/Configuration.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import java.util.concurrent.atomic.AtomicReference;
77
import java.util.function.Supplier;
88

99
{{>generatedAnnotation}}
10+
1011
public class Configuration {
1112
public static final String VERSION = "{{{artifactVersion}}}";
1213

modules/openapi-generator/src/main/resources/Java/JavaTimeFormatter.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import java.time.format.DateTimeParseException;
1010
* It's generated for java clients when {@code AbstractJavaCodegen#dateLibrary} specified as {@code java8}.
1111
*/
1212
{{>generatedAnnotation}}
13+
1314
public class JavaTimeFormatter {
1415
private DateTimeFormatter offsetDateTimeFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME;
1516

modules/openapi-generator/src/main/resources/Java/Pair.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
package {{invokerPackage}};
44

55
{{>generatedAnnotation}}
6+
67
public class Pair {
78
private final String name;
89
private final String value;

modules/openapi-generator/src/main/resources/Java/RFC3339DateFormat.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import java.util.GregorianCalendar;
1212
import java.util.TimeZone;
1313

1414
{{>generatedAnnotation}}
15+
1516
public class RFC3339DateFormat extends DateFormat {
1617
private static final long serialVersionUID = 1L;
1718
private static final TimeZone TIMEZONE_Z = TimeZone.getTimeZone("UTC");

modules/openapi-generator/src/main/resources/Java/RFC3339InstantDeserializer.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import com.fasterxml.jackson.datatype.jsr310.JavaTimeFeature;
1818
import com.fasterxml.jackson.datatype.jsr310.deser.InstantDeserializer;
1919

2020
{{>generatedAnnotation}}
21+
2122
public class RFC3339InstantDeserializer<T extends Temporal> extends InstantDeserializer<T> {
2223
private static final long serialVersionUID = 1L;
2324
private final static boolean DEFAULT_NORMALIZE_ZONE_ID = JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault();

modules/openapi-generator/src/main/resources/Java/RFC3339JavaTimeModule.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import java.time.ZonedDateTime;
88
import com.fasterxml.jackson.databind.module.SimpleModule;
99

1010
{{>generatedAnnotation}}
11+
1112
public class RFC3339JavaTimeModule extends SimpleModule {
1213
private static final long serialVersionUID = 1L;
1314

modules/openapi-generator/src/main/resources/Java/ServerConfiguration.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import java.util.Map;
88
* Representing a Server configuration.
99
*/
1010
{{>generatedAnnotation}}
11+
1112
public class ServerConfiguration {
1213
public String URL;
1314
public String description;

modules/openapi-generator/src/main/resources/Java/ServerVariable.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import java.util.HashSet;
88
* Representing a Server Variable for server URL template substitution.
99
*/
1010
{{>generatedAnnotation}}
11+
1112
public class ServerVariable {
1213
public String description;
1314
public String defaultValue;

modules/openapi-generator/src/main/resources/Java/StringUtil.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import java.util.Collection;
66
import java.util.Iterator;
77

88
{{>generatedAnnotation}}
9+
910
public class StringUtil {
1011
/**
1112
* Check if the given array contains the given value (with case-insensitive comparison).

0 commit comments

Comments
 (0)