Issue 20804: Add java nullability annotations (#20806)

* issue-20804: Add nullability annotations to Java generated clients

Motivation:
Be able to use generated clients in code checked by tools like NullAway.

* issue-20804: Add nullability annotations to Java generated clients

Motivation:
Be able to use generated clients in code checked by tools like NullAway.

* issue-20804: Add nullability annotations to Java generated clients

Motivation:
Be able to use generated clients in code checked by tools like NullAway.
This commit is contained in:
Nicolas Vervelle
2025-03-25 16:01:17 +01:00
committed by GitHub
parent d81b5a37d1
commit 8ca3543436
228 changed files with 4520 additions and 4421 deletions

View File

@@ -52,7 +52,7 @@ public class AnotherFakeApi {
* @return Client
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec call123testSpecialTagsRequestCreation(Client client) throws RestClientResponseException {
private ResponseSpec call123testSpecialTagsRequestCreation(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException {
Object postBody = client;
// verify the required parameter 'client' is set
if (client == null) {
@@ -89,7 +89,7 @@ public class AnotherFakeApi {
* @return Client
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public Client call123testSpecialTags(Client client) throws RestClientResponseException {
public Client call123testSpecialTags(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException {
ParameterizedTypeReference<Client> localVarReturnType = new ParameterizedTypeReference<>() {};
return call123testSpecialTagsRequestCreation(client).body(localVarReturnType);
}
@@ -102,7 +102,7 @@ public class AnotherFakeApi {
* @return ResponseEntity&lt;Client&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Client> call123testSpecialTagsWithHttpInfo(Client client) throws RestClientResponseException {
public ResponseEntity<Client> call123testSpecialTagsWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException {
ParameterizedTypeReference<Client> localVarReturnType = new ParameterizedTypeReference<>() {};
return call123testSpecialTagsRequestCreation(client).toEntity(localVarReturnType);
}
@@ -115,7 +115,7 @@ public class AnotherFakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec call123testSpecialTagsWithResponseSpec(Client client) throws RestClientResponseException {
public ResponseSpec call123testSpecialTagsWithResponseSpec(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException {
return call123testSpecialTagsRequestCreation(client);
}
}

View File

@@ -195,7 +195,7 @@ public class FakeApi {
* @param header1 header parameter
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec fakeHttpSignatureTestRequestCreation(Pet pet, String query1, String header1) throws RestClientResponseException {
private ResponseSpec fakeHttpSignatureTestRequestCreation(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException {
Object postBody = pet;
// verify the required parameter 'pet' is set
if (pet == null) {
@@ -236,7 +236,7 @@ public class FakeApi {
* @param header1 header parameter
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void fakeHttpSignatureTest(Pet pet, String query1, String header1) throws RestClientResponseException {
public void fakeHttpSignatureTest(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
fakeHttpSignatureTestRequestCreation(pet, query1, header1).body(localVarReturnType);
}
@@ -250,7 +250,7 @@ public class FakeApi {
* @param header1 header parameter
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> fakeHttpSignatureTestWithHttpInfo(Pet pet, String query1, String header1) throws RestClientResponseException {
public ResponseEntity<Void> fakeHttpSignatureTestWithHttpInfo(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return fakeHttpSignatureTestRequestCreation(pet, query1, header1).toEntity(localVarReturnType);
}
@@ -265,7 +265,7 @@ public class FakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec fakeHttpSignatureTestWithResponseSpec(Pet pet, String query1, String header1) throws RestClientResponseException {
public ResponseSpec fakeHttpSignatureTestWithResponseSpec(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException {
return fakeHttpSignatureTestRequestCreation(pet, query1, header1);
}
/**
@@ -276,7 +276,7 @@ public class FakeApi {
* @return Boolean
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec fakeOuterBooleanSerializeRequestCreation(Boolean body) throws RestClientResponseException {
private ResponseSpec fakeOuterBooleanSerializeRequestCreation(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException {
Object postBody = body;
// create path and map variables
final Map<String, Object> pathParams = new HashMap<>();
@@ -309,7 +309,7 @@ public class FakeApi {
* @return Boolean
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public Boolean fakeOuterBooleanSerialize(Boolean body) throws RestClientResponseException {
public Boolean fakeOuterBooleanSerialize(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException {
ParameterizedTypeReference<Boolean> localVarReturnType = new ParameterizedTypeReference<>() {};
return fakeOuterBooleanSerializeRequestCreation(body).body(localVarReturnType);
}
@@ -322,7 +322,7 @@ public class FakeApi {
* @return ResponseEntity&lt;Boolean&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Boolean> fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws RestClientResponseException {
public ResponseEntity<Boolean> fakeOuterBooleanSerializeWithHttpInfo(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException {
ParameterizedTypeReference<Boolean> localVarReturnType = new ParameterizedTypeReference<>() {};
return fakeOuterBooleanSerializeRequestCreation(body).toEntity(localVarReturnType);
}
@@ -335,7 +335,7 @@ public class FakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(Boolean body) throws RestClientResponseException {
public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException {
return fakeOuterBooleanSerializeRequestCreation(body);
}
/**
@@ -346,7 +346,7 @@ public class FakeApi {
* @return OuterComposite
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec fakeOuterCompositeSerializeRequestCreation(OuterComposite outerComposite) throws RestClientResponseException {
private ResponseSpec fakeOuterCompositeSerializeRequestCreation(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException {
Object postBody = outerComposite;
// create path and map variables
final Map<String, Object> pathParams = new HashMap<>();
@@ -379,7 +379,7 @@ public class FakeApi {
* @return OuterComposite
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws RestClientResponseException {
public OuterComposite fakeOuterCompositeSerialize(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException {
ParameterizedTypeReference<OuterComposite> localVarReturnType = new ParameterizedTypeReference<>() {};
return fakeOuterCompositeSerializeRequestCreation(outerComposite).body(localVarReturnType);
}
@@ -392,7 +392,7 @@ public class FakeApi {
* @return ResponseEntity&lt;OuterComposite&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws RestClientResponseException {
public ResponseEntity<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException {
ParameterizedTypeReference<OuterComposite> localVarReturnType = new ParameterizedTypeReference<>() {};
return fakeOuterCompositeSerializeRequestCreation(outerComposite).toEntity(localVarReturnType);
}
@@ -405,7 +405,7 @@ public class FakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(OuterComposite outerComposite) throws RestClientResponseException {
public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException {
return fakeOuterCompositeSerializeRequestCreation(outerComposite);
}
/**
@@ -416,7 +416,7 @@ public class FakeApi {
* @return BigDecimal
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec fakeOuterNumberSerializeRequestCreation(BigDecimal body) throws RestClientResponseException {
private ResponseSpec fakeOuterNumberSerializeRequestCreation(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException {
Object postBody = body;
// create path and map variables
final Map<String, Object> pathParams = new HashMap<>();
@@ -449,7 +449,7 @@ public class FakeApi {
* @return BigDecimal
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws RestClientResponseException {
public BigDecimal fakeOuterNumberSerialize(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException {
ParameterizedTypeReference<BigDecimal> localVarReturnType = new ParameterizedTypeReference<>() {};
return fakeOuterNumberSerializeRequestCreation(body).body(localVarReturnType);
}
@@ -462,7 +462,7 @@ public class FakeApi {
* @return ResponseEntity&lt;BigDecimal&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<BigDecimal> fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws RestClientResponseException {
public ResponseEntity<BigDecimal> fakeOuterNumberSerializeWithHttpInfo(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException {
ParameterizedTypeReference<BigDecimal> localVarReturnType = new ParameterizedTypeReference<>() {};
return fakeOuterNumberSerializeRequestCreation(body).toEntity(localVarReturnType);
}
@@ -475,7 +475,7 @@ public class FakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(BigDecimal body) throws RestClientResponseException {
public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException {
return fakeOuterNumberSerializeRequestCreation(body);
}
/**
@@ -486,7 +486,7 @@ public class FakeApi {
* @return String
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec fakeOuterStringSerializeRequestCreation(String body) throws RestClientResponseException {
private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation.Nullable String body) throws RestClientResponseException {
Object postBody = body;
// create path and map variables
final Map<String, Object> pathParams = new HashMap<>();
@@ -519,7 +519,7 @@ public class FakeApi {
* @return String
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public String fakeOuterStringSerialize(String body) throws RestClientResponseException {
public String fakeOuterStringSerialize(@jakarta.annotation.Nullable String body) throws RestClientResponseException {
ParameterizedTypeReference<String> localVarReturnType = new ParameterizedTypeReference<>() {};
return fakeOuterStringSerializeRequestCreation(body).body(localVarReturnType);
}
@@ -532,7 +532,7 @@ public class FakeApi {
* @return ResponseEntity&lt;String&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<String> fakeOuterStringSerializeWithHttpInfo(String body) throws RestClientResponseException {
public ResponseEntity<String> fakeOuterStringSerializeWithHttpInfo(@jakarta.annotation.Nullable String body) throws RestClientResponseException {
ParameterizedTypeReference<String> localVarReturnType = new ParameterizedTypeReference<>() {};
return fakeOuterStringSerializeRequestCreation(body).toEntity(localVarReturnType);
}
@@ -545,7 +545,7 @@ public class FakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec fakeOuterStringSerializeWithResponseSpec(String body) throws RestClientResponseException {
public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable String body) throws RestClientResponseException {
return fakeOuterStringSerializeRequestCreation(body);
}
/**
@@ -556,7 +556,7 @@ public class FakeApi {
* @return OuterObjectWithEnumProperty
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec fakePropertyEnumIntegerSerializeRequestCreation(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException {
private ResponseSpec fakePropertyEnumIntegerSerializeRequestCreation(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException {
Object postBody = outerObjectWithEnumProperty;
// verify the required parameter 'outerObjectWithEnumProperty' is set
if (outerObjectWithEnumProperty == null) {
@@ -593,7 +593,7 @@ public class FakeApi {
* @return OuterObjectWithEnumProperty
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException {
public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException {
ParameterizedTypeReference<OuterObjectWithEnumProperty> localVarReturnType = new ParameterizedTypeReference<>() {};
return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty).body(localVarReturnType);
}
@@ -606,7 +606,7 @@ public class FakeApi {
* @return ResponseEntity&lt;OuterObjectWithEnumProperty&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<OuterObjectWithEnumProperty> fakePropertyEnumIntegerSerializeWithHttpInfo(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException {
public ResponseEntity<OuterObjectWithEnumProperty> fakePropertyEnumIntegerSerializeWithHttpInfo(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException {
ParameterizedTypeReference<OuterObjectWithEnumProperty> localVarReturnType = new ParameterizedTypeReference<>() {};
return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty).toEntity(localVarReturnType);
}
@@ -619,7 +619,7 @@ public class FakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException {
public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException {
return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty);
}
/**
@@ -629,7 +629,7 @@ public class FakeApi {
* @param requestBody request body
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec testAdditionalPropertiesReferenceRequestCreation(Map<String, Object> requestBody) throws RestClientResponseException {
private ResponseSpec testAdditionalPropertiesReferenceRequestCreation(@jakarta.annotation.Nonnull Map<String, Object> requestBody) throws RestClientResponseException {
Object postBody = requestBody;
// verify the required parameter 'requestBody' is set
if (requestBody == null) {
@@ -663,7 +663,7 @@ public class FakeApi {
* @param requestBody request body
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void testAdditionalPropertiesReference(Map<String, Object> requestBody) throws RestClientResponseException {
public void testAdditionalPropertiesReference(@jakarta.annotation.Nonnull Map<String, Object> requestBody) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
testAdditionalPropertiesReferenceRequestCreation(requestBody).body(localVarReturnType);
}
@@ -675,7 +675,7 @@ public class FakeApi {
* @param requestBody request body
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> testAdditionalPropertiesReferenceWithHttpInfo(Map<String, Object> requestBody) throws RestClientResponseException {
public ResponseEntity<Void> testAdditionalPropertiesReferenceWithHttpInfo(@jakarta.annotation.Nonnull Map<String, Object> requestBody) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return testAdditionalPropertiesReferenceRequestCreation(requestBody).toEntity(localVarReturnType);
}
@@ -688,7 +688,7 @@ public class FakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(Map<String, Object> requestBody) throws RestClientResponseException {
public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(@jakarta.annotation.Nonnull Map<String, Object> requestBody) throws RestClientResponseException {
return testAdditionalPropertiesReferenceRequestCreation(requestBody);
}
/**
@@ -698,7 +698,7 @@ public class FakeApi {
* @param body image to upload
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec testBodyWithBinaryRequestCreation(File body) throws RestClientResponseException {
private ResponseSpec testBodyWithBinaryRequestCreation(@jakarta.annotation.Nullable File body) throws RestClientResponseException {
Object postBody = body;
// verify the required parameter 'body' is set
if (body == null) {
@@ -732,7 +732,7 @@ public class FakeApi {
* @param body image to upload
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void testBodyWithBinary(File body) throws RestClientResponseException {
public void testBodyWithBinary(@jakarta.annotation.Nullable File body) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
testBodyWithBinaryRequestCreation(body).body(localVarReturnType);
}
@@ -744,7 +744,7 @@ public class FakeApi {
* @param body image to upload
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> testBodyWithBinaryWithHttpInfo(File body) throws RestClientResponseException {
public ResponseEntity<Void> testBodyWithBinaryWithHttpInfo(@jakarta.annotation.Nullable File body) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return testBodyWithBinaryRequestCreation(body).toEntity(localVarReturnType);
}
@@ -757,7 +757,7 @@ public class FakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testBodyWithBinaryWithResponseSpec(File body) throws RestClientResponseException {
public ResponseSpec testBodyWithBinaryWithResponseSpec(@jakarta.annotation.Nullable File body) throws RestClientResponseException {
return testBodyWithBinaryRequestCreation(body);
}
/**
@@ -767,7 +767,7 @@ public class FakeApi {
* @param fileSchemaTestClass The fileSchemaTestClass parameter
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec testBodyWithFileSchemaRequestCreation(FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException {
private ResponseSpec testBodyWithFileSchemaRequestCreation(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException {
Object postBody = fileSchemaTestClass;
// verify the required parameter 'fileSchemaTestClass' is set
if (fileSchemaTestClass == null) {
@@ -801,7 +801,7 @@ public class FakeApi {
* @param fileSchemaTestClass The fileSchemaTestClass parameter
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException {
public void testBodyWithFileSchema(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
testBodyWithFileSchemaRequestCreation(fileSchemaTestClass).body(localVarReturnType);
}
@@ -813,7 +813,7 @@ public class FakeApi {
* @param fileSchemaTestClass The fileSchemaTestClass parameter
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException {
public ResponseEntity<Void> testBodyWithFileSchemaWithHttpInfo(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass).toEntity(localVarReturnType);
}
@@ -826,7 +826,7 @@ public class FakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testBodyWithFileSchemaWithResponseSpec(FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException {
public ResponseSpec testBodyWithFileSchemaWithResponseSpec(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException {
return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass);
}
/**
@@ -837,7 +837,7 @@ public class FakeApi {
* @param user The user parameter
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec testBodyWithQueryParamsRequestCreation(String query, User user) throws RestClientResponseException {
private ResponseSpec testBodyWithQueryParamsRequestCreation(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException {
Object postBody = user;
// verify the required parameter 'query' is set
if (query == null) {
@@ -878,7 +878,7 @@ public class FakeApi {
* @param user The user parameter
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void testBodyWithQueryParams(String query, User user) throws RestClientResponseException {
public void testBodyWithQueryParams(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
testBodyWithQueryParamsRequestCreation(query, user).body(localVarReturnType);
}
@@ -891,7 +891,7 @@ public class FakeApi {
* @param user The user parameter
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> testBodyWithQueryParamsWithHttpInfo(String query, User user) throws RestClientResponseException {
public ResponseEntity<Void> testBodyWithQueryParamsWithHttpInfo(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return testBodyWithQueryParamsRequestCreation(query, user).toEntity(localVarReturnType);
}
@@ -905,7 +905,7 @@ public class FakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testBodyWithQueryParamsWithResponseSpec(String query, User user) throws RestClientResponseException {
public ResponseSpec testBodyWithQueryParamsWithResponseSpec(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException {
return testBodyWithQueryParamsRequestCreation(query, user);
}
/**
@@ -916,7 +916,7 @@ public class FakeApi {
* @return Client
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec testClientModelRequestCreation(Client client) throws RestClientResponseException {
private ResponseSpec testClientModelRequestCreation(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException {
Object postBody = client;
// verify the required parameter 'client' is set
if (client == null) {
@@ -953,7 +953,7 @@ public class FakeApi {
* @return Client
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public Client testClientModel(Client client) throws RestClientResponseException {
public Client testClientModel(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException {
ParameterizedTypeReference<Client> localVarReturnType = new ParameterizedTypeReference<>() {};
return testClientModelRequestCreation(client).body(localVarReturnType);
}
@@ -966,7 +966,7 @@ public class FakeApi {
* @return ResponseEntity&lt;Client&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Client> testClientModelWithHttpInfo(Client client) throws RestClientResponseException {
public ResponseEntity<Client> testClientModelWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException {
ParameterizedTypeReference<Client> localVarReturnType = new ParameterizedTypeReference<>() {};
return testClientModelRequestCreation(client).toEntity(localVarReturnType);
}
@@ -979,7 +979,7 @@ public class FakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testClientModelWithResponseSpec(Client client) throws RestClientResponseException {
public ResponseSpec testClientModelWithResponseSpec(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException {
return testClientModelRequestCreation(client);
}
/**
@@ -1003,7 +1003,7 @@ public class FakeApi {
* @param paramCallback None
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec testEndpointParametersRequestCreation(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws RestClientResponseException {
private ResponseSpec testEndpointParametersRequestCreation(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException {
Object postBody = null;
// verify the required parameter 'number' is set
if (number == null) {
@@ -1092,7 +1092,7 @@ public class FakeApi {
* @param paramCallback None
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws RestClientResponseException {
public void testEndpointParameters(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback).body(localVarReturnType);
}
@@ -1118,7 +1118,7 @@ public class FakeApi {
* @param paramCallback None
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> testEndpointParametersWithHttpInfo(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws RestClientResponseException {
public ResponseEntity<Void> testEndpointParametersWithHttpInfo(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback).toEntity(localVarReturnType);
}
@@ -1145,7 +1145,7 @@ public class FakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testEndpointParametersWithResponseSpec(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws RestClientResponseException {
public ResponseSpec testEndpointParametersWithResponseSpec(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException {
return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
}
/**
@@ -1164,7 +1164,7 @@ public class FakeApi {
* @param enumFormString Form parameter enum test (string)
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec testEnumParametersRequestCreation(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<EnumClass> enumQueryModelArray, List<String> enumFormStringArray, String enumFormString) throws RestClientResponseException {
private ResponseSpec testEnumParametersRequestCreation(@jakarta.annotation.Nullable List<String> enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List<String> enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List<EnumClass> enumQueryModelArray, @jakarta.annotation.Nullable List<String> enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws RestClientResponseException {
Object postBody = null;
// create path and map variables
final Map<String, Object> pathParams = new HashMap<>();
@@ -1219,7 +1219,7 @@ public class FakeApi {
* @param enumFormString Form parameter enum test (string)
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void testEnumParameters(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<EnumClass> enumQueryModelArray, List<String> enumFormStringArray, String enumFormString) throws RestClientResponseException {
public void testEnumParameters(@jakarta.annotation.Nullable List<String> enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List<String> enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List<EnumClass> enumQueryModelArray, @jakarta.annotation.Nullable List<String> enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).body(localVarReturnType);
}
@@ -1240,7 +1240,7 @@ public class FakeApi {
* @param enumFormString Form parameter enum test (string)
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> testEnumParametersWithHttpInfo(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<EnumClass> enumQueryModelArray, List<String> enumFormStringArray, String enumFormString) throws RestClientResponseException {
public ResponseEntity<Void> testEnumParametersWithHttpInfo(@jakarta.annotation.Nullable List<String> enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List<String> enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List<EnumClass> enumQueryModelArray, @jakarta.annotation.Nullable List<String> enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).toEntity(localVarReturnType);
}
@@ -1262,7 +1262,7 @@ public class FakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testEnumParametersWithResponseSpec(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<EnumClass> enumQueryModelArray, List<String> enumFormStringArray, String enumFormString) throws RestClientResponseException {
public ResponseSpec testEnumParametersWithResponseSpec(@jakarta.annotation.Nullable List<String> enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List<String> enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List<EnumClass> enumQueryModelArray, @jakarta.annotation.Nullable List<String> enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws RestClientResponseException {
return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString);
}
/**
@@ -1277,7 +1277,7 @@ public class FakeApi {
* @param int64Group Integer in group parameters
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec testGroupParametersRequestCreation(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws RestClientResponseException {
private ResponseSpec testGroupParametersRequestCreation(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException {
Object postBody = null;
// verify the required parameter 'requiredStringGroup' is set
if (requiredStringGroup == null) {
@@ -1332,7 +1332,7 @@ public class FakeApi {
* @param int64Group Integer in group parameters
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws RestClientResponseException {
public void testGroupParameters(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group).body(localVarReturnType);
}
@@ -1349,7 +1349,7 @@ public class FakeApi {
* @param int64Group Integer in group parameters
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws RestClientResponseException {
public ResponseEntity<Void> testGroupParametersWithHttpInfo(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group).toEntity(localVarReturnType);
}
@@ -1367,7 +1367,7 @@ public class FakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testGroupParametersWithResponseSpec(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws RestClientResponseException {
public ResponseSpec testGroupParametersWithResponseSpec(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException {
return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
}
/**
@@ -1377,7 +1377,7 @@ public class FakeApi {
* @param requestBody request body
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec testInlineAdditionalPropertiesRequestCreation(Map<String, String> requestBody) throws RestClientResponseException {
private ResponseSpec testInlineAdditionalPropertiesRequestCreation(@jakarta.annotation.Nonnull Map<String, String> requestBody) throws RestClientResponseException {
Object postBody = requestBody;
// verify the required parameter 'requestBody' is set
if (requestBody == null) {
@@ -1411,7 +1411,7 @@ public class FakeApi {
* @param requestBody request body
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void testInlineAdditionalProperties(Map<String, String> requestBody) throws RestClientResponseException {
public void testInlineAdditionalProperties(@jakarta.annotation.Nonnull Map<String, String> requestBody) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
testInlineAdditionalPropertiesRequestCreation(requestBody).body(localVarReturnType);
}
@@ -1423,7 +1423,7 @@ public class FakeApi {
* @param requestBody request body
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> requestBody) throws RestClientResponseException {
public ResponseEntity<Void> testInlineAdditionalPropertiesWithHttpInfo(@jakarta.annotation.Nonnull Map<String, String> requestBody) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return testInlineAdditionalPropertiesRequestCreation(requestBody).toEntity(localVarReturnType);
}
@@ -1436,7 +1436,7 @@ public class FakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(Map<String, String> requestBody) throws RestClientResponseException {
public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(@jakarta.annotation.Nonnull Map<String, String> requestBody) throws RestClientResponseException {
return testInlineAdditionalPropertiesRequestCreation(requestBody);
}
/**
@@ -1446,7 +1446,7 @@ public class FakeApi {
* @param testInlineFreeformAdditionalPropertiesRequest request body
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec testInlineFreeformAdditionalPropertiesRequestCreation(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException {
private ResponseSpec testInlineFreeformAdditionalPropertiesRequestCreation(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException {
Object postBody = testInlineFreeformAdditionalPropertiesRequest;
// verify the required parameter 'testInlineFreeformAdditionalPropertiesRequest' is set
if (testInlineFreeformAdditionalPropertiesRequest == null) {
@@ -1480,7 +1480,7 @@ public class FakeApi {
* @param testInlineFreeformAdditionalPropertiesRequest request body
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException {
public void testInlineFreeformAdditionalProperties(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest).body(localVarReturnType);
}
@@ -1492,7 +1492,7 @@ public class FakeApi {
* @param testInlineFreeformAdditionalPropertiesRequest request body
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException {
public ResponseEntity<Void> testInlineFreeformAdditionalPropertiesWithHttpInfo(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest).toEntity(localVarReturnType);
}
@@ -1505,7 +1505,7 @@ public class FakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException {
public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException {
return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest);
}
/**
@@ -1516,7 +1516,7 @@ public class FakeApi {
* @param param2 field2
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec testJsonFormDataRequestCreation(String param, String param2) throws RestClientResponseException {
private ResponseSpec testJsonFormDataRequestCreation(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException {
Object postBody = null;
// verify the required parameter 'param' is set
if (param == null) {
@@ -1560,7 +1560,7 @@ public class FakeApi {
* @param param2 field2
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void testJsonFormData(String param, String param2) throws RestClientResponseException {
public void testJsonFormData(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
testJsonFormDataRequestCreation(param, param2).body(localVarReturnType);
}
@@ -1573,7 +1573,7 @@ public class FakeApi {
* @param param2 field2
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> testJsonFormDataWithHttpInfo(String param, String param2) throws RestClientResponseException {
public ResponseEntity<Void> testJsonFormDataWithHttpInfo(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return testJsonFormDataRequestCreation(param, param2).toEntity(localVarReturnType);
}
@@ -1587,7 +1587,7 @@ public class FakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testJsonFormDataWithResponseSpec(String param, String param2) throws RestClientResponseException {
public ResponseSpec testJsonFormDataWithResponseSpec(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException {
return testJsonFormDataRequestCreation(param, param2);
}
/**
@@ -1597,7 +1597,7 @@ public class FakeApi {
* @param childWithNullable request body
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec testNullableRequestCreation(ChildWithNullable childWithNullable) throws RestClientResponseException {
private ResponseSpec testNullableRequestCreation(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientResponseException {
Object postBody = childWithNullable;
// verify the required parameter 'childWithNullable' is set
if (childWithNullable == null) {
@@ -1631,7 +1631,7 @@ public class FakeApi {
* @param childWithNullable request body
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void testNullable(ChildWithNullable childWithNullable) throws RestClientResponseException {
public void testNullable(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
testNullableRequestCreation(childWithNullable).body(localVarReturnType);
}
@@ -1643,7 +1643,7 @@ public class FakeApi {
* @param childWithNullable request body
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> testNullableWithHttpInfo(ChildWithNullable childWithNullable) throws RestClientResponseException {
public ResponseEntity<Void> testNullableWithHttpInfo(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return testNullableRequestCreation(childWithNullable).toEntity(localVarReturnType);
}
@@ -1656,7 +1656,7 @@ public class FakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testNullableWithResponseSpec(ChildWithNullable childWithNullable) throws RestClientResponseException {
public ResponseSpec testNullableWithResponseSpec(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientResponseException {
return testNullableRequestCreation(childWithNullable);
}
/**
@@ -1672,7 +1672,7 @@ public class FakeApi {
* @param language The language parameter
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec testQueryParameterCollectionFormatRequestCreation(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, String allowEmpty, Map<String, String> language) throws RestClientResponseException {
private ResponseSpec testQueryParameterCollectionFormatRequestCreation(@jakarta.annotation.Nonnull List<String> pipe, @jakarta.annotation.Nonnull List<String> ioutil, @jakarta.annotation.Nonnull List<String> http, @jakarta.annotation.Nonnull List<String> url, @jakarta.annotation.Nonnull List<String> context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map<String, String> language) throws RestClientResponseException {
Object postBody = null;
// verify the required parameter 'pipe' is set
if (pipe == null) {
@@ -1738,7 +1738,7 @@ public class FakeApi {
* @param language The language parameter
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, String allowEmpty, Map<String, String> language) throws RestClientResponseException {
public void testQueryParameterCollectionFormat(@jakarta.annotation.Nonnull List<String> pipe, @jakarta.annotation.Nonnull List<String> ioutil, @jakarta.annotation.Nonnull List<String> http, @jakarta.annotation.Nonnull List<String> url, @jakarta.annotation.Nonnull List<String> context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map<String, String> language) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language).body(localVarReturnType);
}
@@ -1756,7 +1756,7 @@ public class FakeApi {
* @param language The language parameter
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> testQueryParameterCollectionFormatWithHttpInfo(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, String allowEmpty, Map<String, String> language) throws RestClientResponseException {
public ResponseEntity<Void> testQueryParameterCollectionFormatWithHttpInfo(@jakarta.annotation.Nonnull List<String> pipe, @jakarta.annotation.Nonnull List<String> ioutil, @jakarta.annotation.Nonnull List<String> http, @jakarta.annotation.Nonnull List<String> url, @jakarta.annotation.Nonnull List<String> context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map<String, String> language) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language).toEntity(localVarReturnType);
}
@@ -1775,7 +1775,7 @@ public class FakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, String allowEmpty, Map<String, String> language) throws RestClientResponseException {
public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(@jakarta.annotation.Nonnull List<String> pipe, @jakarta.annotation.Nonnull List<String> ioutil, @jakarta.annotation.Nonnull List<String> http, @jakarta.annotation.Nonnull List<String> url, @jakarta.annotation.Nonnull List<String> context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map<String, String> language) throws RestClientResponseException {
return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language);
}
/**
@@ -1785,7 +1785,7 @@ public class FakeApi {
* @param requestBody request body
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec testStringMapReferenceRequestCreation(Map<String, String> requestBody) throws RestClientResponseException {
private ResponseSpec testStringMapReferenceRequestCreation(@jakarta.annotation.Nonnull Map<String, String> requestBody) throws RestClientResponseException {
Object postBody = requestBody;
// verify the required parameter 'requestBody' is set
if (requestBody == null) {
@@ -1819,7 +1819,7 @@ public class FakeApi {
* @param requestBody request body
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void testStringMapReference(Map<String, String> requestBody) throws RestClientResponseException {
public void testStringMapReference(@jakarta.annotation.Nonnull Map<String, String> requestBody) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
testStringMapReferenceRequestCreation(requestBody).body(localVarReturnType);
}
@@ -1831,7 +1831,7 @@ public class FakeApi {
* @param requestBody request body
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> testStringMapReferenceWithHttpInfo(Map<String, String> requestBody) throws RestClientResponseException {
public ResponseEntity<Void> testStringMapReferenceWithHttpInfo(@jakarta.annotation.Nonnull Map<String, String> requestBody) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return testStringMapReferenceRequestCreation(requestBody).toEntity(localVarReturnType);
}
@@ -1844,7 +1844,7 @@ public class FakeApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testStringMapReferenceWithResponseSpec(Map<String, String> requestBody) throws RestClientResponseException {
public ResponseSpec testStringMapReferenceWithResponseSpec(@jakarta.annotation.Nonnull Map<String, String> requestBody) throws RestClientResponseException {
return testStringMapReferenceRequestCreation(requestBody);
}
}

View File

@@ -52,7 +52,7 @@ public class FakeClassnameTags123Api {
* @return Client
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec testClassnameRequestCreation(Client client) throws RestClientResponseException {
private ResponseSpec testClassnameRequestCreation(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException {
Object postBody = client;
// verify the required parameter 'client' is set
if (client == null) {
@@ -89,7 +89,7 @@ public class FakeClassnameTags123Api {
* @return Client
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public Client testClassname(Client client) throws RestClientResponseException {
public Client testClassname(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException {
ParameterizedTypeReference<Client> localVarReturnType = new ParameterizedTypeReference<>() {};
return testClassnameRequestCreation(client).body(localVarReturnType);
}
@@ -102,7 +102,7 @@ public class FakeClassnameTags123Api {
* @return ResponseEntity&lt;Client&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Client> testClassnameWithHttpInfo(Client client) throws RestClientResponseException {
public ResponseEntity<Client> testClassnameWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException {
ParameterizedTypeReference<Client> localVarReturnType = new ParameterizedTypeReference<>() {};
return testClassnameRequestCreation(client).toEntity(localVarReturnType);
}
@@ -115,7 +115,7 @@ public class FakeClassnameTags123Api {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testClassnameWithResponseSpec(Client client) throws RestClientResponseException {
public ResponseSpec testClassnameWithResponseSpec(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException {
return testClassnameRequestCreation(client);
}
}

View File

@@ -55,7 +55,7 @@ public class PetApi {
* @param pet Pet object that needs to be added to the store
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec addPetRequestCreation(Pet pet) throws RestClientResponseException {
private ResponseSpec addPetRequestCreation(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException {
Object postBody = pet;
// verify the required parameter 'pet' is set
if (pet == null) {
@@ -90,7 +90,7 @@ public class PetApi {
* @param pet Pet object that needs to be added to the store
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void addPet(Pet pet) throws RestClientResponseException {
public void addPet(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
addPetRequestCreation(pet).body(localVarReturnType);
}
@@ -103,7 +103,7 @@ public class PetApi {
* @param pet Pet object that needs to be added to the store
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> addPetWithHttpInfo(Pet pet) throws RestClientResponseException {
public ResponseEntity<Void> addPetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return addPetRequestCreation(pet).toEntity(localVarReturnType);
}
@@ -117,7 +117,7 @@ public class PetApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec addPetWithResponseSpec(Pet pet) throws RestClientResponseException {
public ResponseSpec addPetWithResponseSpec(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException {
return addPetRequestCreation(pet);
}
/**
@@ -129,7 +129,7 @@ public class PetApi {
* @param apiKey The apiKey parameter
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec deletePetRequestCreation(Long petId, String apiKey) throws RestClientResponseException {
private ResponseSpec deletePetRequestCreation(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException {
Object postBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -168,7 +168,7 @@ public class PetApi {
* @param apiKey The apiKey parameter
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void deletePet(Long petId, String apiKey) throws RestClientResponseException {
public void deletePet(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
deletePetRequestCreation(petId, apiKey).body(localVarReturnType);
}
@@ -182,7 +182,7 @@ public class PetApi {
* @param apiKey The apiKey parameter
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> deletePetWithHttpInfo(Long petId, String apiKey) throws RestClientResponseException {
public ResponseEntity<Void> deletePetWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return deletePetRequestCreation(petId, apiKey).toEntity(localVarReturnType);
}
@@ -197,7 +197,7 @@ public class PetApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws RestClientResponseException {
public ResponseSpec deletePetWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException {
return deletePetRequestCreation(petId, apiKey);
}
/**
@@ -209,7 +209,7 @@ public class PetApi {
* @return List&lt;Pet&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec findPetsByStatusRequestCreation(List<String> status) throws RestClientResponseException {
private ResponseSpec findPetsByStatusRequestCreation(@jakarta.annotation.Nonnull List<String> status) throws RestClientResponseException {
Object postBody = null;
// verify the required parameter 'status' is set
if (status == null) {
@@ -247,7 +247,7 @@ public class PetApi {
* @return List&lt;Pet&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public List<Pet> findPetsByStatus(List<String> status) throws RestClientResponseException {
public List<Pet> findPetsByStatus(@jakarta.annotation.Nonnull List<String> status) throws RestClientResponseException {
ParameterizedTypeReference<List<Pet>> localVarReturnType = new ParameterizedTypeReference<>() {};
return findPetsByStatusRequestCreation(status).body(localVarReturnType);
}
@@ -261,7 +261,7 @@ public class PetApi {
* @return ResponseEntity&lt;List&lt;Pet&gt;&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<List<Pet>> findPetsByStatusWithHttpInfo(List<String> status) throws RestClientResponseException {
public ResponseEntity<List<Pet>> findPetsByStatusWithHttpInfo(@jakarta.annotation.Nonnull List<String> status) throws RestClientResponseException {
ParameterizedTypeReference<List<Pet>> localVarReturnType = new ParameterizedTypeReference<>() {};
return findPetsByStatusRequestCreation(status).toEntity(localVarReturnType);
}
@@ -275,7 +275,7 @@ public class PetApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec findPetsByStatusWithResponseSpec(List<String> status) throws RestClientResponseException {
public ResponseSpec findPetsByStatusWithResponseSpec(@jakarta.annotation.Nonnull List<String> status) throws RestClientResponseException {
return findPetsByStatusRequestCreation(status);
}
/**
@@ -289,7 +289,7 @@ public class PetApi {
* @deprecated
*/
@Deprecated
private ResponseSpec findPetsByTagsRequestCreation(Set<String> tags) throws RestClientResponseException {
private ResponseSpec findPetsByTagsRequestCreation(@jakarta.annotation.Nonnull Set<String> tags) throws RestClientResponseException {
Object postBody = null;
// verify the required parameter 'tags' is set
if (tags == null) {
@@ -327,7 +327,7 @@ public class PetApi {
* @return Set&lt;Pet&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public Set<Pet> findPetsByTags(Set<String> tags) throws RestClientResponseException {
public Set<Pet> findPetsByTags(@jakarta.annotation.Nonnull Set<String> tags) throws RestClientResponseException {
ParameterizedTypeReference<Set<Pet>> localVarReturnType = new ParameterizedTypeReference<>() {};
return findPetsByTagsRequestCreation(tags).body(localVarReturnType);
}
@@ -341,7 +341,7 @@ public class PetApi {
* @return ResponseEntity&lt;Set&lt;Pet&gt;&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Set<Pet>> findPetsByTagsWithHttpInfo(Set<String> tags) throws RestClientResponseException {
public ResponseEntity<Set<Pet>> findPetsByTagsWithHttpInfo(@jakarta.annotation.Nonnull Set<String> tags) throws RestClientResponseException {
ParameterizedTypeReference<Set<Pet>> localVarReturnType = new ParameterizedTypeReference<>() {};
return findPetsByTagsRequestCreation(tags).toEntity(localVarReturnType);
}
@@ -355,7 +355,7 @@ public class PetApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec findPetsByTagsWithResponseSpec(Set<String> tags) throws RestClientResponseException {
public ResponseSpec findPetsByTagsWithResponseSpec(@jakarta.annotation.Nonnull Set<String> tags) throws RestClientResponseException {
return findPetsByTagsRequestCreation(tags);
}
/**
@@ -368,7 +368,7 @@ public class PetApi {
* @return Pet
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec getPetByIdRequestCreation(Long petId) throws RestClientResponseException {
private ResponseSpec getPetByIdRequestCreation(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException {
Object postBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -407,7 +407,7 @@ public class PetApi {
* @return Pet
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public Pet getPetById(Long petId) throws RestClientResponseException {
public Pet getPetById(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException {
ParameterizedTypeReference<Pet> localVarReturnType = new ParameterizedTypeReference<>() {};
return getPetByIdRequestCreation(petId).body(localVarReturnType);
}
@@ -422,7 +422,7 @@ public class PetApi {
* @return ResponseEntity&lt;Pet&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Pet> getPetByIdWithHttpInfo(Long petId) throws RestClientResponseException {
public ResponseEntity<Pet> getPetByIdWithHttpInfo(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException {
ParameterizedTypeReference<Pet> localVarReturnType = new ParameterizedTypeReference<>() {};
return getPetByIdRequestCreation(petId).toEntity(localVarReturnType);
}
@@ -437,7 +437,7 @@ public class PetApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec getPetByIdWithResponseSpec(Long petId) throws RestClientResponseException {
public ResponseSpec getPetByIdWithResponseSpec(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException {
return getPetByIdRequestCreation(petId);
}
/**
@@ -450,7 +450,7 @@ public class PetApi {
* @param pet Pet object that needs to be added to the store
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec updatePetRequestCreation(Pet pet) throws RestClientResponseException {
private ResponseSpec updatePetRequestCreation(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException {
Object postBody = pet;
// verify the required parameter 'pet' is set
if (pet == null) {
@@ -487,7 +487,7 @@ public class PetApi {
* @param pet Pet object that needs to be added to the store
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void updatePet(Pet pet) throws RestClientResponseException {
public void updatePet(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
updatePetRequestCreation(pet).body(localVarReturnType);
}
@@ -502,7 +502,7 @@ public class PetApi {
* @param pet Pet object that needs to be added to the store
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> updatePetWithHttpInfo(Pet pet) throws RestClientResponseException {
public ResponseEntity<Void> updatePetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return updatePetRequestCreation(pet).toEntity(localVarReturnType);
}
@@ -518,7 +518,7 @@ public class PetApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec updatePetWithResponseSpec(Pet pet) throws RestClientResponseException {
public ResponseSpec updatePetWithResponseSpec(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException {
return updatePetRequestCreation(pet);
}
/**
@@ -531,7 +531,7 @@ public class PetApi {
* @param status Updated status of the pet
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec updatePetWithFormRequestCreation(Long petId, String name, String status) throws RestClientResponseException {
private ResponseSpec updatePetWithFormRequestCreation(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientResponseException {
Object postBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -575,7 +575,7 @@ public class PetApi {
* @param status Updated status of the pet
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void updatePetWithForm(Long petId, String name, String status) throws RestClientResponseException {
public void updatePetWithForm(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
updatePetWithFormRequestCreation(petId, name, status).body(localVarReturnType);
}
@@ -590,7 +590,7 @@ public class PetApi {
* @param status Updated status of the pet
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws RestClientResponseException {
public ResponseEntity<Void> updatePetWithFormWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return updatePetWithFormRequestCreation(petId, name, status).toEntity(localVarReturnType);
}
@@ -606,7 +606,7 @@ public class PetApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec updatePetWithFormWithResponseSpec(Long petId, String name, String status) throws RestClientResponseException {
public ResponseSpec updatePetWithFormWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientResponseException {
return updatePetWithFormRequestCreation(petId, name, status);
}
/**
@@ -619,7 +619,7 @@ public class PetApi {
* @return ModelApiResponse
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec uploadFileRequestCreation(Long petId, String additionalMetadata, File _file) throws RestClientResponseException {
private ResponseSpec uploadFileRequestCreation(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientResponseException {
Object postBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -665,7 +665,7 @@ public class PetApi {
* @return ModelApiResponse
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws RestClientResponseException {
public ModelApiResponse uploadFile(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientResponseException {
ParameterizedTypeReference<ModelApiResponse> localVarReturnType = new ParameterizedTypeReference<>() {};
return uploadFileRequestCreation(petId, additionalMetadata, _file).body(localVarReturnType);
}
@@ -680,7 +680,7 @@ public class PetApi {
* @return ResponseEntity&lt;ModelApiResponse&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<ModelApiResponse> uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws RestClientResponseException {
public ResponseEntity<ModelApiResponse> uploadFileWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientResponseException {
ParameterizedTypeReference<ModelApiResponse> localVarReturnType = new ParameterizedTypeReference<>() {};
return uploadFileRequestCreation(petId, additionalMetadata, _file).toEntity(localVarReturnType);
}
@@ -695,7 +695,7 @@ public class PetApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec uploadFileWithResponseSpec(Long petId, String additionalMetadata, File _file) throws RestClientResponseException {
public ResponseSpec uploadFileWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientResponseException {
return uploadFileRequestCreation(petId, additionalMetadata, _file);
}
/**
@@ -708,7 +708,7 @@ public class PetApi {
* @return ModelApiResponse
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec uploadFileWithRequiredFileRequestCreation(Long petId, File requiredFile, String additionalMetadata) throws RestClientResponseException {
private ResponseSpec uploadFileWithRequiredFileRequestCreation(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws RestClientResponseException {
Object postBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -758,7 +758,7 @@ public class PetApi {
* @return ModelApiResponse
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws RestClientResponseException {
public ModelApiResponse uploadFileWithRequiredFile(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws RestClientResponseException {
ParameterizedTypeReference<ModelApiResponse> localVarReturnType = new ParameterizedTypeReference<>() {};
return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata).body(localVarReturnType);
}
@@ -773,7 +773,7 @@ public class PetApi {
* @return ResponseEntity&lt;ModelApiResponse&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<ModelApiResponse> uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws RestClientResponseException {
public ResponseEntity<ModelApiResponse> uploadFileWithRequiredFileWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws RestClientResponseException {
ParameterizedTypeReference<ModelApiResponse> localVarReturnType = new ParameterizedTypeReference<>() {};
return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata).toEntity(localVarReturnType);
}
@@ -788,7 +788,7 @@ public class PetApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(Long petId, File requiredFile, String additionalMetadata) throws RestClientResponseException {
public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws RestClientResponseException {
return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata);
}
}

View File

@@ -52,7 +52,7 @@ public class StoreApi {
* @param orderId ID of the order that needs to be deleted
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec deleteOrderRequestCreation(String orderId) throws RestClientResponseException {
private ResponseSpec deleteOrderRequestCreation(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException {
Object postBody = null;
// verify the required parameter 'orderId' is set
if (orderId == null) {
@@ -87,7 +87,7 @@ public class StoreApi {
* @param orderId ID of the order that needs to be deleted
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void deleteOrder(String orderId) throws RestClientResponseException {
public void deleteOrder(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
deleteOrderRequestCreation(orderId).body(localVarReturnType);
}
@@ -100,7 +100,7 @@ public class StoreApi {
* @param orderId ID of the order that needs to be deleted
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> deleteOrderWithHttpInfo(String orderId) throws RestClientResponseException {
public ResponseEntity<Void> deleteOrderWithHttpInfo(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return deleteOrderRequestCreation(orderId).toEntity(localVarReturnType);
}
@@ -114,7 +114,7 @@ public class StoreApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec deleteOrderWithResponseSpec(String orderId) throws RestClientResponseException {
public ResponseSpec deleteOrderWithResponseSpec(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException {
return deleteOrderRequestCreation(orderId);
}
/**
@@ -191,7 +191,7 @@ public class StoreApi {
* @return Order
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec getOrderByIdRequestCreation(Long orderId) throws RestClientResponseException {
private ResponseSpec getOrderByIdRequestCreation(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException {
Object postBody = null;
// verify the required parameter 'orderId' is set
if (orderId == null) {
@@ -230,7 +230,7 @@ public class StoreApi {
* @return Order
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public Order getOrderById(Long orderId) throws RestClientResponseException {
public Order getOrderById(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException {
ParameterizedTypeReference<Order> localVarReturnType = new ParameterizedTypeReference<>() {};
return getOrderByIdRequestCreation(orderId).body(localVarReturnType);
}
@@ -245,7 +245,7 @@ public class StoreApi {
* @return ResponseEntity&lt;Order&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Order> getOrderByIdWithHttpInfo(Long orderId) throws RestClientResponseException {
public ResponseEntity<Order> getOrderByIdWithHttpInfo(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException {
ParameterizedTypeReference<Order> localVarReturnType = new ParameterizedTypeReference<>() {};
return getOrderByIdRequestCreation(orderId).toEntity(localVarReturnType);
}
@@ -260,7 +260,7 @@ public class StoreApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec getOrderByIdWithResponseSpec(Long orderId) throws RestClientResponseException {
public ResponseSpec getOrderByIdWithResponseSpec(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException {
return getOrderByIdRequestCreation(orderId);
}
/**
@@ -272,7 +272,7 @@ public class StoreApi {
* @return Order
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec placeOrderRequestCreation(Order order) throws RestClientResponseException {
private ResponseSpec placeOrderRequestCreation(@jakarta.annotation.Nonnull Order order) throws RestClientResponseException {
Object postBody = order;
// verify the required parameter 'order' is set
if (order == null) {
@@ -310,7 +310,7 @@ public class StoreApi {
* @return Order
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public Order placeOrder(Order order) throws RestClientResponseException {
public Order placeOrder(@jakarta.annotation.Nonnull Order order) throws RestClientResponseException {
ParameterizedTypeReference<Order> localVarReturnType = new ParameterizedTypeReference<>() {};
return placeOrderRequestCreation(order).body(localVarReturnType);
}
@@ -324,7 +324,7 @@ public class StoreApi {
* @return ResponseEntity&lt;Order&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Order> placeOrderWithHttpInfo(Order order) throws RestClientResponseException {
public ResponseEntity<Order> placeOrderWithHttpInfo(@jakarta.annotation.Nonnull Order order) throws RestClientResponseException {
ParameterizedTypeReference<Order> localVarReturnType = new ParameterizedTypeReference<>() {};
return placeOrderRequestCreation(order).toEntity(localVarReturnType);
}
@@ -338,7 +338,7 @@ public class StoreApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec placeOrderWithResponseSpec(Order order) throws RestClientResponseException {
public ResponseSpec placeOrderWithResponseSpec(@jakarta.annotation.Nonnull Order order) throws RestClientResponseException {
return placeOrderRequestCreation(order);
}
}

View File

@@ -52,7 +52,7 @@ public class UserApi {
* @param user Created user object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec createUserRequestCreation(User user) throws RestClientResponseException {
private ResponseSpec createUserRequestCreation(@jakarta.annotation.Nonnull User user) throws RestClientResponseException {
Object postBody = user;
// verify the required parameter 'user' is set
if (user == null) {
@@ -86,7 +86,7 @@ public class UserApi {
* @param user Created user object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void createUser(User user) throws RestClientResponseException {
public void createUser(@jakarta.annotation.Nonnull User user) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
createUserRequestCreation(user).body(localVarReturnType);
}
@@ -98,7 +98,7 @@ public class UserApi {
* @param user Created user object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> createUserWithHttpInfo(User user) throws RestClientResponseException {
public ResponseEntity<Void> createUserWithHttpInfo(@jakarta.annotation.Nonnull User user) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return createUserRequestCreation(user).toEntity(localVarReturnType);
}
@@ -111,7 +111,7 @@ public class UserApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec createUserWithResponseSpec(User user) throws RestClientResponseException {
public ResponseSpec createUserWithResponseSpec(@jakarta.annotation.Nonnull User user) throws RestClientResponseException {
return createUserRequestCreation(user);
}
/**
@@ -121,7 +121,7 @@ public class UserApi {
* @param user List of user object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec createUsersWithArrayInputRequestCreation(List<User> user) throws RestClientResponseException {
private ResponseSpec createUsersWithArrayInputRequestCreation(@jakarta.annotation.Nonnull List<User> user) throws RestClientResponseException {
Object postBody = user;
// verify the required parameter 'user' is set
if (user == null) {
@@ -155,7 +155,7 @@ public class UserApi {
* @param user List of user object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void createUsersWithArrayInput(List<User> user) throws RestClientResponseException {
public void createUsersWithArrayInput(@jakarta.annotation.Nonnull List<User> user) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
createUsersWithArrayInputRequestCreation(user).body(localVarReturnType);
}
@@ -167,7 +167,7 @@ public class UserApi {
* @param user List of user object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> createUsersWithArrayInputWithHttpInfo(List<User> user) throws RestClientResponseException {
public ResponseEntity<Void> createUsersWithArrayInputWithHttpInfo(@jakarta.annotation.Nonnull List<User> user) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return createUsersWithArrayInputRequestCreation(user).toEntity(localVarReturnType);
}
@@ -180,7 +180,7 @@ public class UserApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec createUsersWithArrayInputWithResponseSpec(List<User> user) throws RestClientResponseException {
public ResponseSpec createUsersWithArrayInputWithResponseSpec(@jakarta.annotation.Nonnull List<User> user) throws RestClientResponseException {
return createUsersWithArrayInputRequestCreation(user);
}
/**
@@ -190,7 +190,7 @@ public class UserApi {
* @param user List of user object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec createUsersWithListInputRequestCreation(List<User> user) throws RestClientResponseException {
private ResponseSpec createUsersWithListInputRequestCreation(@jakarta.annotation.Nonnull List<User> user) throws RestClientResponseException {
Object postBody = user;
// verify the required parameter 'user' is set
if (user == null) {
@@ -224,7 +224,7 @@ public class UserApi {
* @param user List of user object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void createUsersWithListInput(List<User> user) throws RestClientResponseException {
public void createUsersWithListInput(@jakarta.annotation.Nonnull List<User> user) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
createUsersWithListInputRequestCreation(user).body(localVarReturnType);
}
@@ -236,7 +236,7 @@ public class UserApi {
* @param user List of user object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> createUsersWithListInputWithHttpInfo(List<User> user) throws RestClientResponseException {
public ResponseEntity<Void> createUsersWithListInputWithHttpInfo(@jakarta.annotation.Nonnull List<User> user) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return createUsersWithListInputRequestCreation(user).toEntity(localVarReturnType);
}
@@ -249,7 +249,7 @@ public class UserApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec createUsersWithListInputWithResponseSpec(List<User> user) throws RestClientResponseException {
public ResponseSpec createUsersWithListInputWithResponseSpec(@jakarta.annotation.Nonnull List<User> user) throws RestClientResponseException {
return createUsersWithListInputRequestCreation(user);
}
/**
@@ -260,7 +260,7 @@ public class UserApi {
* @param username The name that needs to be deleted
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec deleteUserRequestCreation(String username) throws RestClientResponseException {
private ResponseSpec deleteUserRequestCreation(@jakarta.annotation.Nonnull String username) throws RestClientResponseException {
Object postBody = null;
// verify the required parameter 'username' is set
if (username == null) {
@@ -295,7 +295,7 @@ public class UserApi {
* @param username The name that needs to be deleted
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void deleteUser(String username) throws RestClientResponseException {
public void deleteUser(@jakarta.annotation.Nonnull String username) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
deleteUserRequestCreation(username).body(localVarReturnType);
}
@@ -308,7 +308,7 @@ public class UserApi {
* @param username The name that needs to be deleted
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> deleteUserWithHttpInfo(String username) throws RestClientResponseException {
public ResponseEntity<Void> deleteUserWithHttpInfo(@jakarta.annotation.Nonnull String username) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return deleteUserRequestCreation(username).toEntity(localVarReturnType);
}
@@ -322,7 +322,7 @@ public class UserApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec deleteUserWithResponseSpec(String username) throws RestClientResponseException {
public ResponseSpec deleteUserWithResponseSpec(@jakarta.annotation.Nonnull String username) throws RestClientResponseException {
return deleteUserRequestCreation(username);
}
/**
@@ -335,7 +335,7 @@ public class UserApi {
* @return User
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec getUserByNameRequestCreation(String username) throws RestClientResponseException {
private ResponseSpec getUserByNameRequestCreation(@jakarta.annotation.Nonnull String username) throws RestClientResponseException {
Object postBody = null;
// verify the required parameter 'username' is set
if (username == null) {
@@ -374,7 +374,7 @@ public class UserApi {
* @return User
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public User getUserByName(String username) throws RestClientResponseException {
public User getUserByName(@jakarta.annotation.Nonnull String username) throws RestClientResponseException {
ParameterizedTypeReference<User> localVarReturnType = new ParameterizedTypeReference<>() {};
return getUserByNameRequestCreation(username).body(localVarReturnType);
}
@@ -389,7 +389,7 @@ public class UserApi {
* @return ResponseEntity&lt;User&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<User> getUserByNameWithHttpInfo(String username) throws RestClientResponseException {
public ResponseEntity<User> getUserByNameWithHttpInfo(@jakarta.annotation.Nonnull String username) throws RestClientResponseException {
ParameterizedTypeReference<User> localVarReturnType = new ParameterizedTypeReference<>() {};
return getUserByNameRequestCreation(username).toEntity(localVarReturnType);
}
@@ -404,7 +404,7 @@ public class UserApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec getUserByNameWithResponseSpec(String username) throws RestClientResponseException {
public ResponseSpec getUserByNameWithResponseSpec(@jakarta.annotation.Nonnull String username) throws RestClientResponseException {
return getUserByNameRequestCreation(username);
}
/**
@@ -417,7 +417,7 @@ public class UserApi {
* @return String
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec loginUserRequestCreation(String username, String password) throws RestClientResponseException {
private ResponseSpec loginUserRequestCreation(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException {
Object postBody = null;
// verify the required parameter 'username' is set
if (username == null) {
@@ -461,7 +461,7 @@ public class UserApi {
* @return String
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public String loginUser(String username, String password) throws RestClientResponseException {
public String loginUser(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException {
ParameterizedTypeReference<String> localVarReturnType = new ParameterizedTypeReference<>() {};
return loginUserRequestCreation(username, password).body(localVarReturnType);
}
@@ -476,7 +476,7 @@ public class UserApi {
* @return ResponseEntity&lt;String&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<String> loginUserWithHttpInfo(String username, String password) throws RestClientResponseException {
public ResponseEntity<String> loginUserWithHttpInfo(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException {
ParameterizedTypeReference<String> localVarReturnType = new ParameterizedTypeReference<>() {};
return loginUserRequestCreation(username, password).toEntity(localVarReturnType);
}
@@ -491,7 +491,7 @@ public class UserApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec loginUserWithResponseSpec(String username, String password) throws RestClientResponseException {
public ResponseSpec loginUserWithResponseSpec(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException {
return loginUserRequestCreation(username, password);
}
/**
@@ -562,7 +562,7 @@ public class UserApi {
* @param user Updated user object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec updateUserRequestCreation(String username, User user) throws RestClientResponseException {
private ResponseSpec updateUserRequestCreation(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws RestClientResponseException {
Object postBody = user;
// verify the required parameter 'username' is set
if (username == null) {
@@ -604,7 +604,7 @@ public class UserApi {
* @param user Updated user object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public void updateUser(String username, User user) throws RestClientResponseException {
public void updateUser(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
updateUserRequestCreation(username, user).body(localVarReturnType);
}
@@ -618,7 +618,7 @@ public class UserApi {
* @param user Updated user object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> updateUserWithHttpInfo(String username, User user) throws RestClientResponseException {
public ResponseEntity<Void> updateUserWithHttpInfo(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws RestClientResponseException {
ParameterizedTypeReference<Void> localVarReturnType = new ParameterizedTypeReference<>() {};
return updateUserRequestCreation(username, user).toEntity(localVarReturnType);
}
@@ -633,7 +633,7 @@ public class UserApi {
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec updateUserWithResponseSpec(String username, User user) throws RestClientResponseException {
public ResponseSpec updateUserWithResponseSpec(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws RestClientResponseException {
return updateUserRequestCreation(username, user);
}
}