You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOGGER.error("An exception occurred in OpenAPI Normalizer. Please report the issue via https://github.com/openapitools/openapi-generator/issues/new/: ");
270
-
e.printStackTrace();
270
+
LOGGER.error("An exception occurred in OpenAPI Normalizer. Please report the issue via https://github.com/openapitools/openapi-generator/issues/new/: ", e);
LOGGER.info("Type " + variable.getComplexType() + " of variable " + variable.getName() + " could not be resolve because it is not declared as a model.");
610
+
LOGGER.info("Type {} of variable {} could not be resolve because it is not declared as a model.", variable.getComplexType(), variable.getName());
611
611
}
612
612
} else {
613
-
LOGGER.info("Type " + variable.getOpenApiType() + " of variable " + variable.getName() + " could not be resolve because it is not declared as a model.");
613
+
LOGGER.info("Type {} of variable {} could not be resolve because it is not declared as a model.", variable.getOpenApiType(), variable.getName());
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/java/org/openapitools/codegen/templating/GeneratorTemplateContentLocator.java
+23-1Lines changed: 23 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,22 @@
7
7
8
8
importjava.io.File;
9
9
importjava.nio.file.Paths;
10
+
importjava.util.Optional;
11
+
importjava.util.concurrent.ConcurrentHashMap;
10
12
11
13
/**
12
14
* Locates templates according to {@link CodegenConfig} settings.
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/java/org/openapitools/codegen/templating/HandlebarsEngineAdapter.java
+44-37Lines changed: 44 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,6 @@
38
38
39
39
importjava.io.IOException;
40
40
importjava.util.Arrays;
41
-
importjava.util.Locale;
42
41
importjava.util.Map;
43
42
importjava.util.concurrent.ConcurrentHashMap;
44
43
@@ -49,20 +48,24 @@ public class HandlebarsEngineAdapter extends AbstractTemplatingEngineAdapter {
49
48
// We use this as a simple lookup for valid file name extensions. This adapter will inspect .mustache (built-in) and infer the relevant handlebars filename
0 commit comments