Skip to content

Commit a21f081

Browse files
committed
rebuilt
1 parent 96380bb commit a21f081

File tree

23 files changed

+191
-170
lines changed

23 files changed

+191
-170
lines changed

samples/client/petstore/akka-scala/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
<akka-version>2.3.9</akka-version>
218218
<joda-version>1.2</joda-version>
219219
<joda-time-version>2.2</joda-time-version>
220-
<swagger-core-version>1.5.0</swagger-core-version>
220+
<swagger-core-version>1.5.4</swagger-core-version>
221221
<maven-plugin.version>1.0.0</maven-plugin.version>
222222

223223
<junit-version>4.8.1</junit-version>

samples/client/petstore/akka-scala/src/main/scala/io/swagger/client/api/PetApi.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ object PetApi {
1111
/**
1212
*
1313
* Expected answers:
14-
* code 405 : (Validation exception)
15-
* code 404 : (Pet not found)
1614
* code 400 : (Invalid ID supplied)
15+
* code 404 : (Pet not found)
16+
* code 405 : (Validation exception)
1717
*
1818
* @param body Pet object that needs to be added to the store
1919
*/
2020
def updatePet(body: Option[Pet] = None): ApiRequest[Unit] =
2121
ApiRequest[Unit](ApiMethods.PUT, "http://petstore.swagger.io/v2", "/pet", "application/json")
2222
.withBody(body)
23-
.withErrorResponse[Unit](405)
24-
.withErrorResponse[Unit](404)
2523
.withErrorResponse[Unit](400)
24+
.withErrorResponse[Unit](404)
25+
.withErrorResponse[Unit](405)
2626

2727
/**
2828
*
@@ -70,9 +70,9 @@ object PetApi {
7070
* Returns a pet when ID &lt; 10. ID &gt; 10 or nonintegers will simulate API error conditions
7171
*
7272
* Expected answers:
73-
* code 404 : (Pet not found)
7473
* code 200 : Pet (successful operation)
7574
* code 400 : (Invalid ID supplied)
75+
* code 404 : (Pet not found)
7676
*
7777
* Available security schemes:
7878
* api_key (apiKey)
@@ -83,9 +83,9 @@ object PetApi {
8383
ApiRequest[Pet](ApiMethods.GET, "http://petstore.swagger.io/v2", "/pet/{petId}", "application/json")
8484
.withApiKey(apiKey, "api_key", HEADER)
8585
.withPathParam("petId", petId)
86-
.withErrorResponse[Unit](404)
8786
.withSuccessResponse[Pet](200)
8887
.withErrorResponse[Unit](400)
88+
.withErrorResponse[Unit](404)
8989

9090
/**
9191
*

samples/client/petstore/akka-scala/src/main/scala/io/swagger/client/api/StoreApi.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,33 +39,33 @@ object StoreApi {
3939
* For valid response try integer IDs with value &lt;= 5 or &gt; 10. Other values will generated exceptions
4040
*
4141
* Expected answers:
42-
* code 404 : (Order not found)
4342
* code 200 : Order (successful operation)
4443
* code 400 : (Invalid ID supplied)
44+
* code 404 : (Order not found)
4545
*
4646
* @param orderId ID of pet that needs to be fetched
4747
*/
4848
def getOrderById(orderId: String): ApiRequest[Order] =
4949
ApiRequest[Order](ApiMethods.GET, "http://petstore.swagger.io/v2", "/store/order/{orderId}", "application/json")
5050
.withPathParam("orderId", orderId)
51-
.withErrorResponse[Unit](404)
5251
.withSuccessResponse[Order](200)
5352
.withErrorResponse[Unit](400)
53+
.withErrorResponse[Unit](404)
5454

5555
/**
5656
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
5757
*
5858
* Expected answers:
59-
* code 404 : (Order not found)
6059
* code 400 : (Invalid ID supplied)
60+
* code 404 : (Order not found)
6161
*
6262
* @param orderId ID of the order that needs to be deleted
6363
*/
6464
def deleteOrder(orderId: String): ApiRequest[Unit] =
6565
ApiRequest[Unit](ApiMethods.DELETE, "http://petstore.swagger.io/v2", "/store/order/{orderId}", "application/json")
6666
.withPathParam("orderId", orderId)
67-
.withErrorResponse[Unit](404)
6867
.withErrorResponse[Unit](400)
68+
.withErrorResponse[Unit](404)
6969

7070

7171

samples/client/petstore/akka-scala/src/main/scala/io/swagger/client/api/UserApi.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,25 +72,25 @@ object UserApi {
7272
/**
7373
*
7474
* Expected answers:
75-
* code 404 : (User not found)
7675
* code 200 : User (successful operation)
7776
* code 400 : (Invalid username supplied)
77+
* code 404 : (User not found)
7878
*
79-
* @param username The name that needs to be fetched. Use user1 for testing.
79+
* @param username The name that needs to be fetched. Use user1 for testing.
8080
*/
8181
def getUserByName(username: String): ApiRequest[User] =
8282
ApiRequest[User](ApiMethods.GET, "http://petstore.swagger.io/v2", "/user/{username}", "application/json")
8383
.withPathParam("username", username)
84-
.withErrorResponse[Unit](404)
8584
.withSuccessResponse[User](200)
8685
.withErrorResponse[Unit](400)
86+
.withErrorResponse[Unit](404)
8787

8888
/**
8989
* This can only be done by the logged in user.
9090
*
9191
* Expected answers:
92-
* code 404 : (User not found)
9392
* code 400 : (Invalid user supplied)
93+
* code 404 : (User not found)
9494
*
9595
* @param username name that need to be deleted
9696
* @param body Updated user object
@@ -99,23 +99,23 @@ object UserApi {
9999
ApiRequest[Unit](ApiMethods.PUT, "http://petstore.swagger.io/v2", "/user/{username}", "application/json")
100100
.withBody(body)
101101
.withPathParam("username", username)
102-
.withErrorResponse[Unit](404)
103102
.withErrorResponse[Unit](400)
103+
.withErrorResponse[Unit](404)
104104

105105
/**
106106
* This can only be done by the logged in user.
107107
*
108108
* Expected answers:
109-
* code 404 : (User not found)
110109
* code 400 : (Invalid username supplied)
110+
* code 404 : (User not found)
111111
*
112112
* @param username The name that needs to be deleted
113113
*/
114114
def deleteUser(username: String): ApiRequest[Unit] =
115115
ApiRequest[Unit](ApiMethods.DELETE, "http://petstore.swagger.io/v2", "/user/{username}", "application/json")
116116
.withPathParam("username", username)
117-
.withErrorResponse[Unit](404)
118117
.withErrorResponse[Unit](400)
118+
.withErrorResponse[Unit](404)
119119

120120

121121

samples/client/petstore/android-java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
</repository>
146146
</repositories>
147147
<properties>
148-
<swagger-annotations-version>1.5.0</swagger-annotations-version>
148+
<swagger-annotations-version>1.5.4</swagger-annotations-version>
149149
<gson-version>2.3.1</gson-version>
150150
<junit-version>4.8.1</junit-version>
151151
<maven-plugin-version>1.0.0</maven-plugin-version>

samples/client/petstore/android-java/src/main/java/io/swagger/client/api/UserApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ public void logoutUser () throws ApiException {
316316
/**
317317
* Get user by user name
318318
*
319-
* @param username The name that needs to be fetched. Use user1 for testing.
319+
* @param username The name that needs to be fetched. Use user1 for testing.
320320
* @return User
321321
*/
322322
public User getUserByName (String username) throws ApiException {

samples/client/petstore/android-java/src/main/java/io/swagger/client/model/Pet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ public class Pet {
1818
@SerializedName("name")
1919
private String name = null;
2020
@SerializedName("photoUrls")
21-
private List<String> photoUrls = new ArrayList<String>() ;
21+
private List<String> photoUrls = null;
2222
@SerializedName("tags")
23-
private List<Tag> tags = new ArrayList<Tag>() ;
23+
private List<Tag> tags = null;
2424
public enum StatusEnum {
2525
available, pending, sold,
2626
};

samples/client/petstore/async-scala/src/main/scala/io/swagger/client/api/PetApi.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,9 @@ class PetApi(client: TransportClient, config: SwaggerConfig) extends ApiClient(c
145145
}
146146

147147

148-
def deletePet(apiKey: Option[String] = None,
149-
petId: Long)(implicit reader: ClientResponseReader[Unit]): Future[Unit] = {
148+
def deletePet(petId: Long,
149+
apiKey: Option[String] = None
150+
)(implicit reader: ClientResponseReader[Unit]): Future[Unit] = {
150151
// create path and map variables
151152
val path = (addFmt("/pet/{petId}")
152153
replaceAll ("\\{" + "petId" + "\\}",petId.toString))

samples/client/petstore/perl/lib/WWW/SwaggerClient/PetApi.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,8 @@ sub update_pet_with_form {
387387
#
388388
# Deletes a pet
389389
#
390-
# @param string $api_key (optional)
391390
# @param int $pet_id Pet id to delete (required)
391+
# @param string $api_key (optional)
392392
# @return void
393393
#
394394
sub delete_pet {

samples/client/petstore/perl/lib/WWW/SwaggerClient/UserApi.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ sub logout_user {
305305
#
306306
# Get user by user name
307307
#
308-
# @param string $username The name that needs to be fetched. Use user1 for testing. (required)
308+
# @param string $username The name that needs to be fetched. Use user1 for testing. (required)
309309
# @return User
310310
#
311311
sub get_user_by_name {

0 commit comments

Comments
 (0)