Skip to content
Browse files

Swagger: AS3 sdk - Default service base class intialized when run thr…

…ough script
  • Loading branch information...
1 parent 56b4115 commit 7f3af74ecaed15f5d928ea0315e616ff59a5f1a1 @deepak-michael deepak-michael committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/main/java/com/wordnik/swagger/codegen/config/as3/As3LibCodeGen.java
View
2 src/main/java/com/wordnik/swagger/codegen/config/as3/As3LibCodeGen.java
@@ -21,6 +21,7 @@
*/
public class As3LibCodeGen extends LibraryCodeGenerator{
protected static final String MANIFEST_OBJECT_TEMPLATE = "ReferencesObject";
+ private static final String DEFAULT_SERVICE_BASE_CLASS = "SwaggerApi";
public static void main(String[] args) {
if(args.length < 1){
@@ -47,6 +48,7 @@ public static void main(String[] args) {
String classOutputDir = libraryHome + "/src/main/as3/" + packageName.replace(".","/");
As3LibCodeGen codeGenerator = new As3LibCodeGen(apiServerURL, apiKey, modelPackageName,
apiPackageName, classOutputDir, libraryHome);
+ codeGenerator.getConfig().setDefaultServiceBaseClass(DEFAULT_SERVICE_BASE_CLASS);
codeGenerator.generateCode();
}

0 comments on commit 7f3af74

Please sign in to comment.
Something went wrong with that request. Please try again.