File tree 9 files changed +49
-7
lines changed
modules/swagger-codegen/src/main/resources/Java/libraries/okhttp-gson
samples/client/petstore/java/okhttp-gson
src/main/java/io/swagger/client
9 files changed +49
-7
lines changed Original file line number Diff line number Diff line change 104
104
<target >1.6</target >
105
105
</configuration >
106
106
</plugin >
107
+ <!-- For testing build.gradle -->
108
+ <plugin >
109
+ <groupId >org.codehaus.mojo</groupId >
110
+ <artifactId >exec-maven-plugin</artifactId >
111
+ <version >1.2.1</version >
112
+ <executions >
113
+ <execution >
114
+ <id >gradle-test</id >
115
+ <phase >integration-test</phase >
116
+ <goals >
117
+ <goal >exec</goal >
118
+ </goals >
119
+ <configuration >
120
+ <executable >gradle</executable >
121
+ <arguments >
122
+ <argument >check</argument >
123
+ </arguments >
124
+ </configuration >
125
+ </execution >
126
+ </executions >
127
+ </plugin >
128
+
107
129
</plugins >
108
130
</build >
109
131
<dependencies >
Original file line number Diff line number Diff line change 104
104
<target >1.6</target >
105
105
</configuration >
106
106
</plugin >
107
+ <plugin >
108
+ <groupId >org.codehaus.mojo</groupId >
109
+ <artifactId >exec-maven-plugin</artifactId >
110
+ <version >1.2.1</version >
111
+ <executions >
112
+ <execution >
113
+ <id >gradle-test</id >
114
+ <phase >integration-test</phase >
115
+ <goals >
116
+ <goal >exec</goal >
117
+ </goals >
118
+ <configuration >
119
+ <executable >gradle</executable >
120
+ <arguments >
121
+ <argument >check</argument >
122
+ </arguments >
123
+ </configuration >
124
+ </execution >
125
+ </executions >
126
+ </plugin >
107
127
</plugins >
108
128
</build >
109
129
<dependencies >
Original file line number Diff line number Diff line change @@ -145,8 +145,8 @@ public ApiClient() {
145
145
146
146
// Setup authentications (key: authentication name, value: authentication).
147
147
authentications = new HashMap <String , Authentication >();
148
- authentications .put ("petstore_auth" , new OAuth ());
149
148
authentications .put ("api_key" , new ApiKeyAuth ("header" , "api_key" ));
149
+ authentications .put ("petstore_auth" , new OAuth ());
150
150
// Prevent the authentications from being modified.
151
151
authentications = Collections .unmodifiableMap (authentications );
152
152
}
Original file line number Diff line number Diff line change 3
3
import java .util .Map ;
4
4
import java .util .List ;
5
5
6
- @ javax .annotation .Generated (value = "class io.swagger.codegen.languages.JavaClientCodegen" , date = "2016-01-05T14:39:20.056 +08:00" )
6
+ @ javax .annotation .Generated (value = "class io.swagger.codegen.languages.JavaClientCodegen" , date = "2016-02-15T18:20:42.151 +08:00" )
7
7
public class ApiException extends Exception {
8
8
private int code = 0 ;
9
9
private Map <String , List <String >> responseHeaders = null ;
Original file line number Diff line number Diff line change 1
1
package io .swagger .client ;
2
2
3
- @ javax .annotation .Generated (value = "class io.swagger.codegen.languages.JavaClientCodegen" , date = "2016-01-05T14:39:20.056 +08:00" )
3
+ @ javax .annotation .Generated (value = "class io.swagger.codegen.languages.JavaClientCodegen" , date = "2016-02-15T18:20:42.151 +08:00" )
4
4
public class Configuration {
5
5
private static ApiClient defaultApiClient = new ApiClient ();
6
6
Original file line number Diff line number Diff line change 1
1
package io .swagger .client ;
2
2
3
- @ javax .annotation .Generated (value = "class io.swagger.codegen.languages.JavaClientCodegen" , date = "2016-01-05T14:39:20.056 +08:00" )
3
+ @ javax .annotation .Generated (value = "class io.swagger.codegen.languages.JavaClientCodegen" , date = "2016-02-15T18:20:42.151 +08:00" )
4
4
public class Pair {
5
5
private String name = "" ;
6
6
private String value = "" ;
Original file line number Diff line number Diff line change 1
1
package io .swagger .client ;
2
2
3
- @ javax .annotation .Generated (value = "class io.swagger.codegen.languages.JavaClientCodegen" , date = "2016-01-05T14:39:20.056 +08:00" )
3
+ @ javax .annotation .Generated (value = "class io.swagger.codegen.languages.JavaClientCodegen" , date = "2016-02-15T18:20:42.151 +08:00" )
4
4
public class StringUtil {
5
5
/**
6
6
* Check if the given array contains the given value (with case-insensitive comparison).
Original file line number Diff line number Diff line change 5
5
import java .util .Map ;
6
6
import java .util .List ;
7
7
8
- @ javax .annotation .Generated (value = "class io.swagger.codegen.languages.JavaClientCodegen" , date = "2016-01-05T14:39:20.056 +08:00" )
8
+ @ javax .annotation .Generated (value = "class io.swagger.codegen.languages.JavaClientCodegen" , date = "2016-02-15T18:20:42.151 +08:00" )
9
9
public class ApiKeyAuth implements Authentication {
10
10
private final String location ;
11
11
private final String paramName ;
Original file line number Diff line number Diff line change 5
5
import java .util .Map ;
6
6
import java .util .List ;
7
7
8
- @ javax .annotation .Generated (value = "class io.swagger.codegen.languages.JavaClientCodegen" , date = "2016-01-05T14:39:20.056 +08:00" )
8
+ @ javax .annotation .Generated (value = "class io.swagger.codegen.languages.JavaClientCodegen" , date = "2016-02-15T18:20:42.151 +08:00" )
9
9
public class OAuth implements Authentication {
10
10
private String accessToken ;
11
11
You can’t perform that action at this time.
0 commit comments