Fix usage of javax.annotation (#6645)

* Fix usage of javax.annotation:javax.annotation-api

* Regenerate samples

```
bin/generate-samples.sh bin/configs/java-* bin/configs/jaxrs-* bin/configs/spring-* bin/configs/kotlin-* bin/configs/other/java-* bin/configs/other/jaxrs-* bin/configs/other/kotlin-* bin/configs/other/openapi3/jaxrs-cxf-client.yaml bin/configs/other/openapi3/kotlin-*
```
This commit is contained in:
Jochen Schalanda
2020-06-14 11:01:18 +02:00
committed by GitHub
parent e07f084e2a
commit 32adeddd8f
3075 changed files with 6183 additions and 4573 deletions

View File

@@ -17,7 +17,7 @@ Method | HTTP request | Description
## createUser
> createUser(body)
> CompletableFuture<Void> createUser(body)
Create user
@@ -32,6 +32,7 @@ import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
import org.openapitools.client.api.UserApi;
import java.util.concurrent.CompletableFuture;
public class Example {
public static void main(String[] args) {
@@ -41,7 +42,7 @@ public class Example {
UserApi apiInstance = new UserApi(defaultClient);
User body = new User(); // User | Created user object
try {
apiInstance.createUser(body);
CompletableFuture<Void> result = apiInstance.createUser(body);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUser");
System.err.println("Status code: " + e.getCode());
@@ -62,7 +63,8 @@ Name | Type | Description | Notes
### Return type
null (empty response body)
CompletableFuture<void> (empty response body)
### Authorization
@@ -81,7 +83,7 @@ No authorization required
## createUsersWithArrayInput
> createUsersWithArrayInput(body)
> CompletableFuture<Void> createUsersWithArrayInput(body)
Creates list of users with given input array
@@ -94,6 +96,7 @@ import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
import org.openapitools.client.api.UserApi;
import java.util.concurrent.CompletableFuture;
public class Example {
public static void main(String[] args) {
@@ -103,7 +106,7 @@ public class Example {
UserApi apiInstance = new UserApi(defaultClient);
List<User> body = Arrays.asList(); // List<User> | List of user object
try {
apiInstance.createUsersWithArrayInput(body);
CompletableFuture<Void> result = apiInstance.createUsersWithArrayInput(body);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
System.err.println("Status code: " + e.getCode());
@@ -124,7 +127,8 @@ Name | Type | Description | Notes
### Return type
null (empty response body)
CompletableFuture<void> (empty response body)
### Authorization
@@ -143,7 +147,7 @@ No authorization required
## createUsersWithListInput
> createUsersWithListInput(body)
> CompletableFuture<Void> createUsersWithListInput(body)
Creates list of users with given input array
@@ -156,6 +160,7 @@ import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
import org.openapitools.client.api.UserApi;
import java.util.concurrent.CompletableFuture;
public class Example {
public static void main(String[] args) {
@@ -165,7 +170,7 @@ public class Example {
UserApi apiInstance = new UserApi(defaultClient);
List<User> body = Arrays.asList(); // List<User> | List of user object
try {
apiInstance.createUsersWithListInput(body);
CompletableFuture<Void> result = apiInstance.createUsersWithListInput(body);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithListInput");
System.err.println("Status code: " + e.getCode());
@@ -186,7 +191,8 @@ Name | Type | Description | Notes
### Return type
null (empty response body)
CompletableFuture<void> (empty response body)
### Authorization
@@ -205,7 +211,7 @@ No authorization required
## deleteUser
> deleteUser(username)
> CompletableFuture<Void> deleteUser(username)
Delete user
@@ -220,6 +226,7 @@ import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
import org.openapitools.client.api.UserApi;
import java.util.concurrent.CompletableFuture;
public class Example {
public static void main(String[] args) {
@@ -229,7 +236,7 @@ public class Example {
UserApi apiInstance = new UserApi(defaultClient);
String username = "username_example"; // String | The name that needs to be deleted
try {
apiInstance.deleteUser(username);
CompletableFuture<Void> result = apiInstance.deleteUser(username);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#deleteUser");
System.err.println("Status code: " + e.getCode());
@@ -250,7 +257,8 @@ Name | Type | Description | Notes
### Return type
null (empty response body)
CompletableFuture<void> (empty response body)
### Authorization
@@ -270,7 +278,7 @@ No authorization required
## getUserByName
> User getUserByName(username)
> CompletableFuture<User> getUserByName(username)
Get user by user name
@@ -283,6 +291,7 @@ import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
import org.openapitools.client.api.UserApi;
import java.util.concurrent.CompletableFuture;
public class Example {
public static void main(String[] args) {
@@ -292,7 +301,7 @@ public class Example {
UserApi apiInstance = new UserApi(defaultClient);
String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
try {
User result = apiInstance.getUserByName(username);
CompletableFuture<User> result = apiInstance.getUserByName(username);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#getUserByName");
@@ -314,7 +323,8 @@ Name | Type | Description | Notes
### Return type
[**User**](User.md)
CompletableFuture<[**User**](User.md)>
### Authorization
@@ -335,7 +345,7 @@ No authorization required
## loginUser
> String loginUser(username, password)
> CompletableFuture<String> loginUser(username, password)
Logs user into the system
@@ -348,6 +358,7 @@ import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
import org.openapitools.client.api.UserApi;
import java.util.concurrent.CompletableFuture;
public class Example {
public static void main(String[] args) {
@@ -358,7 +369,7 @@ public class Example {
String username = "username_example"; // String | The user name for login
String password = "password_example"; // String | The password for login in clear text
try {
String result = apiInstance.loginUser(username, password);
CompletableFuture<String> result = apiInstance.loginUser(username, password);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#loginUser");
@@ -381,7 +392,8 @@ Name | Type | Description | Notes
### Return type
**String**
CompletableFuture<**String**>
### Authorization
@@ -401,7 +413,7 @@ No authorization required
## logoutUser
> logoutUser()
> CompletableFuture<Void> logoutUser()
Logs out current logged in user session
@@ -414,6 +426,7 @@ import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
import org.openapitools.client.api.UserApi;
import java.util.concurrent.CompletableFuture;
public class Example {
public static void main(String[] args) {
@@ -422,7 +435,7 @@ public class Example {
UserApi apiInstance = new UserApi(defaultClient);
try {
apiInstance.logoutUser();
CompletableFuture<Void> result = apiInstance.logoutUser();
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#logoutUser");
System.err.println("Status code: " + e.getCode());
@@ -440,7 +453,8 @@ This endpoint does not need any parameter.
### Return type
null (empty response body)
CompletableFuture<void> (empty response body)
### Authorization
@@ -459,7 +473,7 @@ No authorization required
## updateUser
> updateUser(username, body)
> CompletableFuture<Void> updateUser(username, body)
Updated user
@@ -474,6 +488,7 @@ import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
import org.openapitools.client.api.UserApi;
import java.util.concurrent.CompletableFuture;
public class Example {
public static void main(String[] args) {
@@ -484,7 +499,7 @@ public class Example {
String username = "username_example"; // String | name that need to be deleted
User body = new User(); // User | Updated user object
try {
apiInstance.updateUser(username, body);
CompletableFuture<Void> result = apiInstance.updateUser(username, body);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#updateUser");
System.err.println("Status code: " + e.getCode());
@@ -506,7 +521,8 @@ Name | Type | Description | Notes
### Return type
null (empty response body)
CompletableFuture<void> (empty response body)
### Authorization