Skip to content

Commit

Permalink
Scala import fix (#6227)
Browse files Browse the repository at this point in the history
* Fix typo in Scala import generation

* Update test files
  • Loading branch information
mthebridge authored and wing328 committed Aug 3, 2017
1 parent 7aee5b6 commit 9cadfd4
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public ScalaClientCodegen() {
importMapping.remove("Map");

importMapping.put("Date", "java.util.Date");
importMapping.put("ListBuffer", "scala.collections.mutable.ListBuffer");
importMapping.put("ListBuffer", "scala.collection.mutable.ListBuffer");

typeMapping = new HashMap<String, String>();
typeMapping.put("enum", "NSString");
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/scala/.swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.3-SNAPSHOT
2.3.0-SNAPSHOT
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ class PetApi(val defBasePath: String = "http://petstore.swagger.io/v2",
case Success(i) => Some(await.get)
case Failure(t) => None
}

}

/**
Expand All @@ -104,7 +103,6 @@ class PetApi(val defBasePath: String = "http://petstore.swagger.io/v2",
case Success(i) => Some(await.get)
case Failure(t) => None
}

}

/**
Expand All @@ -131,7 +129,6 @@ class PetApi(val defBasePath: String = "http://petstore.swagger.io/v2",
case Success(i) => Some(await.get)
case Failure(t) => None
}

}

/**
Expand All @@ -157,7 +154,6 @@ class PetApi(val defBasePath: String = "http://petstore.swagger.io/v2",
case Success(i) => Some(await.get)
case Failure(t) => None
}

}

/**
Expand All @@ -183,7 +179,6 @@ class PetApi(val defBasePath: String = "http://petstore.swagger.io/v2",
case Success(i) => Some(await.get)
case Failure(t) => None
}

}

/**
Expand All @@ -209,7 +204,6 @@ class PetApi(val defBasePath: String = "http://petstore.swagger.io/v2",
case Success(i) => Some(await.get)
case Failure(t) => None
}

}

/**
Expand Down Expand Up @@ -237,7 +231,6 @@ class PetApi(val defBasePath: String = "http://petstore.swagger.io/v2",
case Success(i) => Some(await.get)
case Failure(t) => None
}

}

/**
Expand Down Expand Up @@ -267,7 +260,6 @@ class PetApi(val defBasePath: String = "http://petstore.swagger.io/v2",
case Success(i) => Some(await.get)
case Failure(t) => None
}

}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ class StoreApi(val defBasePath: String = "http://petstore.swagger.io/v2",
case Success(i) => Some(await.get)
case Failure(t) => None
}

}

/**
Expand All @@ -100,7 +99,6 @@ class StoreApi(val defBasePath: String = "http://petstore.swagger.io/v2",
case Success(i) => Some(await.get)
case Failure(t) => None
}

}

/**
Expand All @@ -125,7 +123,6 @@ class StoreApi(val defBasePath: String = "http://petstore.swagger.io/v2",
case Success(i) => Some(await.get)
case Failure(t) => None
}

}

/**
Expand All @@ -151,7 +148,6 @@ class StoreApi(val defBasePath: String = "http://petstore.swagger.io/v2",
case Success(i) => Some(await.get)
case Failure(t) => None
}

}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ class UserApi(val defBasePath: String = "http://petstore.swagger.io/v2",
case Success(i) => Some(await.get)
case Failure(t) => None
}

}

/**
Expand All @@ -101,7 +100,6 @@ class UserApi(val defBasePath: String = "http://petstore.swagger.io/v2",
case Success(i) => Some(await.get)
case Failure(t) => None
}

}

/**
Expand All @@ -127,7 +125,6 @@ class UserApi(val defBasePath: String = "http://petstore.swagger.io/v2",
case Success(i) => Some(await.get)
case Failure(t) => None
}

}

/**
Expand All @@ -153,7 +150,6 @@ class UserApi(val defBasePath: String = "http://petstore.swagger.io/v2",
case Success(i) => Some(await.get)
case Failure(t) => None
}

}

/**
Expand All @@ -179,7 +175,6 @@ class UserApi(val defBasePath: String = "http://petstore.swagger.io/v2",
case Success(i) => Some(await.get)
case Failure(t) => None
}

}

/**
Expand All @@ -206,7 +201,6 @@ class UserApi(val defBasePath: String = "http://petstore.swagger.io/v2",
case Success(i) => Some(await.get)
case Failure(t) => None
}

}

/**
Expand All @@ -232,7 +226,6 @@ class UserApi(val defBasePath: String = "http://petstore.swagger.io/v2",
case Success(i) => Some(await.get)
case Failure(t) => None
}

}

/**
Expand All @@ -258,7 +251,6 @@ class UserApi(val defBasePath: String = "http://petstore.swagger.io/v2",
case Success(i) => Some(await.get)
case Failure(t) => None
}

}

/**
Expand Down

0 comments on commit 9cadfd4

Please sign in to comment.