Skip to content
This repository was archived by the owner on Apr 27, 2021. It is now read-only.

Commit 63d64c7

Browse files
committed
Switched NamingPolicy to NONE
1 parent 8ba6e6d commit 63d64c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/javawebstack/openapi/client/JavaClientGenerator.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ private void generateClient(File targetFolder){
122122
.append("package ")
123123
.append(basePackage)
124124
.append(";\n\n")
125-
.append("import org.javawebstack.httpclient.HTTPClient;\n")
126-
.append("import org.javawebstack.httpclient.HTTPRequest;\n")
125+
.append("import org.javawebstack.httpclient.*;\n")
126+
.append("import org.javawebstack.graph.*;\n")
127127
.append("import ")
128128
.append(basePackage)
129129
.append(".tags.*;\n\n")
@@ -141,6 +141,7 @@ private void generateClient(File targetFolder){
141141
.append("\n public ")
142142
.append(apiName)
143143
.append("Client() {\n");
144+
sb.append(" this.graphMapper(new GraphMapper().setNamingPolicy(NamingPolicy.NONE));\n");
144145
api.getTags().forEach(t -> sb
145146
.append(" this.")
146147
.append(t.getName())

0 commit comments

Comments
 (0)