feat (#19407 JAVA SPRING WEBCLIENT): Add support for useSingleRequestParameter to Spring WebClient (#19827)

* chore (JAVA SPRING WEBCLIENT): Remove comments used for debugging

* feat (JAVA SPRING WEBCLIENT): Add support for useSingleRequestParameter to Spring WebClient

* feat (JAVA SPRING WEBCLIENT): Generate samples and docs

* fix (JAVA SPRING WEBCLIENT): Fix missing return error & Fix JDK17 action webclient useSingleRequestParameter test path

* fix (JAVA SPRING WEBCLIENT): Fix code indention

* fix (JAVA SPRING WEBCLIENT): Fix code indention again

* fix (JAVA SPRING WEBCLIENT): Update samples

* feat (JAVA SPRING WEBCLIENT): Regenerate after pull rebase
This commit is contained in:
Nicklas Wiegandt
2024-12-15 08:28:38 +01:00
committed by GitHub
parent cc40f40ead
commit 07d19baf89
240 changed files with 26760 additions and 230 deletions

View File

@@ -46,6 +46,7 @@ public class AnotherFakeApi {
this.apiClient = apiClient;
}
/**
* To test special tags
* To test special tags and operation ID starting with number

View File

@@ -46,6 +46,7 @@ public class DefaultApi {
this.apiClient = apiClient;
}
/**
*
*

View File

@@ -60,6 +60,7 @@ public class FakeApi {
this.apiClient = apiClient;
}
/**
*
* for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys
@@ -124,6 +125,7 @@ public class FakeApi {
public ResponseSpec fakeBigDecimalMapWithResponseSpec() throws WebClientResponseException {
return fakeBigDecimalMapRequestCreation();
}
/**
* Health check endpoint
*
@@ -188,6 +190,7 @@ public class FakeApi {
public ResponseSpec fakeHealthGetWithResponseSpec() throws WebClientResponseException {
return fakeHealthGetRequestCreation();
}
/**
* test http signature authentication
*
@@ -270,6 +273,7 @@ public class FakeApi {
public ResponseSpec fakeHttpSignatureTestWithResponseSpec(Pet pet, String query1, String header1) throws WebClientResponseException {
return fakeHttpSignatureTestRequestCreation(pet, query1, header1);
}
/**
*
* Test serialization of outer boolean types
@@ -340,6 +344,7 @@ public class FakeApi {
public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(Boolean body) throws WebClientResponseException {
return fakeOuterBooleanSerializeRequestCreation(body);
}
/**
*
* Test serialization of object with outer number type
@@ -410,6 +415,7 @@ public class FakeApi {
public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(OuterComposite outerComposite) throws WebClientResponseException {
return fakeOuterCompositeSerializeRequestCreation(outerComposite);
}
/**
*
* Test serialization of outer number types
@@ -480,6 +486,7 @@ public class FakeApi {
public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(BigDecimal body) throws WebClientResponseException {
return fakeOuterNumberSerializeRequestCreation(body);
}
/**
*
* Test serialization of outer string types
@@ -550,6 +557,7 @@ public class FakeApi {
public ResponseSpec fakeOuterStringSerializeWithResponseSpec(String body) throws WebClientResponseException {
return fakeOuterStringSerializeRequestCreation(body);
}
/**
*
* Test serialization of enum (int) properties with examples
@@ -624,6 +632,7 @@ public class FakeApi {
public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException {
return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty);
}
/**
* test referenced additionalProperties
*
@@ -693,6 +702,7 @@ public class FakeApi {
public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(Map<String, Object> requestBody) throws WebClientResponseException {
return testAdditionalPropertiesReferenceRequestCreation(requestBody);
}
/**
*
* For this test, the body has to be a binary file.
@@ -762,6 +772,7 @@ public class FakeApi {
public ResponseSpec testBodyWithBinaryWithResponseSpec(File body) throws WebClientResponseException {
return testBodyWithBinaryRequestCreation(body);
}
/**
*
* For this test, the body for this request must reference a schema named &#x60;File&#x60;.
@@ -831,6 +842,7 @@ public class FakeApi {
public ResponseSpec testBodyWithFileSchemaWithResponseSpec(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException {
return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass);
}
/**
*
*
@@ -910,6 +922,7 @@ public class FakeApi {
public ResponseSpec testBodyWithQueryParamsWithResponseSpec(String query, User user) throws WebClientResponseException {
return testBodyWithQueryParamsRequestCreation(query, user);
}
/**
* To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model
@@ -984,6 +997,7 @@ public class FakeApi {
public ResponseSpec testClientModelWithResponseSpec(Client client) throws WebClientResponseException {
return testClientModelRequestCreation(client);
}
/**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@@ -1150,6 +1164,7 @@ public class FakeApi {
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 WebClientResponseException {
return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
}
/**
* To test enum parameters
* To test enum parameters
@@ -1267,6 +1282,7 @@ public class FakeApi {
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 WebClientResponseException {
return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString);
}
/**
* Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
@@ -1372,6 +1388,7 @@ public class FakeApi {
public ResponseSpec testGroupParametersWithResponseSpec(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException {
return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
}
/**
* test inline additionalProperties
*
@@ -1441,6 +1458,7 @@ public class FakeApi {
public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(Map<String, String> requestBody) throws WebClientResponseException {
return testInlineAdditionalPropertiesRequestCreation(requestBody);
}
/**
* test inline free-form additionalProperties
*
@@ -1510,6 +1528,7 @@ public class FakeApi {
public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException {
return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest);
}
/**
* test json serialization of form data
*
@@ -1592,6 +1611,7 @@ public class FakeApi {
public ResponseSpec testJsonFormDataWithResponseSpec(String param, String param2) throws WebClientResponseException {
return testJsonFormDataRequestCreation(param, param2);
}
/**
* test nullable parent property
*
@@ -1661,6 +1681,7 @@ public class FakeApi {
public ResponseSpec testNullableWithResponseSpec(ChildWithNullable childWithNullable) throws WebClientResponseException {
return testNullableRequestCreation(childWithNullable);
}
/**
*
* To test the collection format in query parameters
@@ -1780,6 +1801,7 @@ public class FakeApi {
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 WebClientResponseException {
return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language);
}
/**
* test referenced string map
*

View File

@@ -46,6 +46,7 @@ public class FakeClassnameTags123Api {
this.apiClient = apiClient;
}
/**
* To test class name in snake case
* To test class name in snake case

View File

@@ -49,6 +49,7 @@ public class PetApi {
this.apiClient = apiClient;
}
/**
* Add a new pet to the store
*
@@ -122,6 +123,7 @@ public class PetApi {
public ResponseSpec addPetWithResponseSpec(Pet pet) throws WebClientResponseException {
return addPetRequestCreation(pet);
}
/**
* Deletes a pet
*
@@ -202,6 +204,7 @@ public class PetApi {
public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws WebClientResponseException {
return deletePetRequestCreation(petId, apiKey);
}
/**
* Finds Pets by status
* Multiple status values can be provided with comma separated strings
@@ -280,6 +283,7 @@ public class PetApi {
public ResponseSpec findPetsByStatusWithResponseSpec(List<String> status) throws WebClientResponseException {
return findPetsByStatusRequestCreation(status);
}
/**
* Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@@ -360,6 +364,7 @@ public class PetApi {
public ResponseSpec findPetsByTagsWithResponseSpec(Set<String> tags) throws WebClientResponseException {
return findPetsByTagsRequestCreation(tags);
}
/**
* Find pet by ID
* Returns a single pet
@@ -442,6 +447,7 @@ public class PetApi {
public ResponseSpec getPetByIdWithResponseSpec(Long petId) throws WebClientResponseException {
return getPetByIdRequestCreation(petId);
}
/**
* Update an existing pet
*
@@ -523,6 +529,7 @@ public class PetApi {
public ResponseSpec updatePetWithResponseSpec(Pet pet) throws WebClientResponseException {
return updatePetRequestCreation(pet);
}
/**
* Updates a pet in the store with form data
*
@@ -611,6 +618,7 @@ public class PetApi {
public ResponseSpec updatePetWithFormWithResponseSpec(Long petId, String name, String status) throws WebClientResponseException {
return updatePetWithFormRequestCreation(petId, name, status);
}
/**
* uploads an image
*
@@ -700,6 +708,7 @@ public class PetApi {
public ResponseSpec uploadFileWithResponseSpec(Long petId, String additionalMetadata, File _file) throws WebClientResponseException {
return uploadFileRequestCreation(petId, additionalMetadata, _file);
}
/**
* uploads an image (required)
*

View File

@@ -46,6 +46,7 @@ public class StoreApi {
this.apiClient = apiClient;
}
/**
* Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@@ -119,6 +120,7 @@ public class StoreApi {
public ResponseSpec deleteOrderWithResponseSpec(String orderId) throws WebClientResponseException {
return deleteOrderRequestCreation(orderId);
}
/**
* Returns pet inventories by status
* Returns a map of status codes to quantities
@@ -183,6 +185,7 @@ public class StoreApi {
public ResponseSpec getInventoryWithResponseSpec() throws WebClientResponseException {
return getInventoryRequestCreation();
}
/**
* Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@@ -265,6 +268,7 @@ public class StoreApi {
public ResponseSpec getOrderByIdWithResponseSpec(Long orderId) throws WebClientResponseException {
return getOrderByIdRequestCreation(orderId);
}
/**
* Place an order for a pet
*

View File

@@ -47,6 +47,7 @@ public class UserApi {
this.apiClient = apiClient;
}
/**
* Create user
* This can only be done by the logged in user.
@@ -116,6 +117,7 @@ public class UserApi {
public ResponseSpec createUserWithResponseSpec(User user) throws WebClientResponseException {
return createUserRequestCreation(user);
}
/**
* Creates list of users with given input array
*
@@ -185,6 +187,7 @@ public class UserApi {
public ResponseSpec createUsersWithArrayInputWithResponseSpec(List<User> user) throws WebClientResponseException {
return createUsersWithArrayInputRequestCreation(user);
}
/**
* Creates list of users with given input array
*
@@ -254,6 +257,7 @@ public class UserApi {
public ResponseSpec createUsersWithListInputWithResponseSpec(List<User> user) throws WebClientResponseException {
return createUsersWithListInputRequestCreation(user);
}
/**
* Delete user
* This can only be done by the logged in user.
@@ -327,6 +331,7 @@ public class UserApi {
public ResponseSpec deleteUserWithResponseSpec(String username) throws WebClientResponseException {
return deleteUserRequestCreation(username);
}
/**
* Get user by user name
*
@@ -409,6 +414,7 @@ public class UserApi {
public ResponseSpec getUserByNameWithResponseSpec(String username) throws WebClientResponseException {
return getUserByNameRequestCreation(username);
}
/**
* Logs user into the system
*
@@ -496,6 +502,7 @@ public class UserApi {
public ResponseSpec loginUserWithResponseSpec(String username, String password) throws WebClientResponseException {
return loginUserRequestCreation(username, password);
}
/**
* Logs out current logged in user session
*
@@ -555,6 +562,7 @@ public class UserApi {
public ResponseSpec logoutUserWithResponseSpec() throws WebClientResponseException {
return logoutUserRequestCreation();
}
/**
* Updated user
* This can only be done by the logged in user.