This repository was archived by the owner on Apr 27, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
src/main/java/org/javawebstack/openapi/client Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ())
You can’t perform that action at this time.
0 commit comments