Skip to content

Commit

Permalink
fix (JAVA SPRING WEBCLIENT): Fix code indention
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicklas2751 committed Oct 10, 2024
1 parent 5cdc7bb commit 965850a
Show file tree
Hide file tree
Showing 31 changed files with 1,118 additions and 925 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,23 @@ public class ResourceApi {
private ApiClient apiClient;

public ResourceApi() {
this(new ApiClient());
this(new ApiClient());
}

@Autowired
public ResourceApi(ApiClient apiClient) {
this.apiClient = apiClient;
this.apiClient = apiClient;
}

public ApiClient getApiClient() {
return apiClient;
return apiClient;
}

public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
this.apiClient = apiClient;
}


/**
*
* Response file abstraction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,23 @@ public class AnotherFakeApi {
private ApiClient apiClient;

public AnotherFakeApi() {
this(new ApiClient());
this(new ApiClient());
}

@Autowired
public AnotherFakeApi(ApiClient apiClient) {
this.apiClient = apiClient;
this.apiClient = apiClient;
}

public ApiClient getApiClient() {
return apiClient;
return apiClient;
}

public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
this.apiClient = apiClient;
}


/**
* To test special tags
* To test special tags and operation ID starting with number
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,23 @@ public class DefaultApi {
private ApiClient apiClient;

public DefaultApi() {
this(new ApiClient());
this(new ApiClient());
}

@Autowired
public DefaultApi(ApiClient apiClient) {
this.apiClient = apiClient;
this.apiClient = apiClient;
}

public ApiClient getApiClient() {
return apiClient;
return apiClient;
}

public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
this.apiClient = apiClient;
}


/**
*
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,23 @@ public class FakeApi {
private ApiClient apiClient;

public FakeApi() {
this(new ApiClient());
this(new ApiClient());
}

@Autowired
public FakeApi(ApiClient apiClient) {
this.apiClient = apiClient;
this.apiClient = apiClient;
}

public ApiClient getApiClient() {
return apiClient;
return apiClient;
}

public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
this.apiClient = apiClient;
}


/**
*
* for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys
Expand Down Expand Up @@ -124,6 +125,7 @@ public Mono<ResponseEntity<FakeBigDecimalMap200Response>> fakeBigDecimalMapWithH
public ResponseSpec fakeBigDecimalMapWithResponseSpec() throws WebClientResponseException {
return fakeBigDecimalMapRequestCreation();
}

/**
* Health check endpoint
*
Expand Down Expand Up @@ -188,6 +190,7 @@ public Mono<ResponseEntity<HealthCheckResult>> fakeHealthGetWithHttpInfo() throw
public ResponseSpec fakeHealthGetWithResponseSpec() throws WebClientResponseException {
return fakeHealthGetRequestCreation();
}

/**
* test http signature authentication
*
Expand Down Expand Up @@ -270,6 +273,7 @@ public Mono<ResponseEntity<Void>> fakeHttpSignatureTestWithHttpInfo(Pet pet, Str
public ResponseSpec fakeHttpSignatureTestWithResponseSpec(Pet pet, String query1, String header1) throws WebClientResponseException {
return fakeHttpSignatureTestRequestCreation(pet, query1, header1);
}

/**
*
* Test serialization of outer boolean types
Expand Down Expand Up @@ -340,6 +344,7 @@ public Mono<ResponseEntity<Boolean>> fakeOuterBooleanSerializeWithHttpInfo(Boole
public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(Boolean body) throws WebClientResponseException {
return fakeOuterBooleanSerializeRequestCreation(body);
}

/**
*
* Test serialization of object with outer number type
Expand Down Expand Up @@ -410,6 +415,7 @@ public Mono<ResponseEntity<OuterComposite>> fakeOuterCompositeSerializeWithHttpI
public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(OuterComposite outerComposite) throws WebClientResponseException {
return fakeOuterCompositeSerializeRequestCreation(outerComposite);
}

/**
*
* Test serialization of outer number types
Expand Down Expand Up @@ -480,6 +486,7 @@ public Mono<ResponseEntity<BigDecimal>> fakeOuterNumberSerializeWithHttpInfo(Big
public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(BigDecimal body) throws WebClientResponseException {
return fakeOuterNumberSerializeRequestCreation(body);
}

/**
*
* Test serialization of outer string types
Expand Down Expand Up @@ -550,6 +557,7 @@ public Mono<ResponseEntity<String>> fakeOuterStringSerializeWithHttpInfo(String
public ResponseSpec fakeOuterStringSerializeWithResponseSpec(String body) throws WebClientResponseException {
return fakeOuterStringSerializeRequestCreation(body);
}

/**
*
* Test serialization of enum (int) properties with examples
Expand Down Expand Up @@ -624,6 +632,7 @@ public Mono<ResponseEntity<OuterObjectWithEnumProperty>> fakePropertyEnumInteger
public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException {
return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty);
}

/**
* test referenced additionalProperties
*
Expand Down Expand Up @@ -693,6 +702,7 @@ public Mono<ResponseEntity<Void>> testAdditionalPropertiesReferenceWithHttpInfo(
public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(Map<String, Object> requestBody) throws WebClientResponseException {
return testAdditionalPropertiesReferenceRequestCreation(requestBody);
}

/**
*
* For this test, the body has to be a binary file.
Expand Down Expand Up @@ -762,6 +772,7 @@ public Mono<ResponseEntity<Void>> testBodyWithBinaryWithHttpInfo(File body) thro
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;.
Expand Down Expand Up @@ -831,6 +842,7 @@ public Mono<ResponseEntity<Void>> testBodyWithFileSchemaWithHttpInfo(FileSchemaT
public ResponseSpec testBodyWithFileSchemaWithResponseSpec(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException {
return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass);
}

/**
*
*
Expand Down Expand Up @@ -910,6 +922,7 @@ public Mono<ResponseEntity<Void>> testBodyWithQueryParamsWithHttpInfo(String que
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
Expand Down Expand Up @@ -984,6 +997,7 @@ public Mono<ResponseEntity<Client>> testClientModelWithHttpInfo(Client client) t
public ResponseSpec testClientModelWithResponseSpec(Client client) throws WebClientResponseException {
return testClientModelRequestCreation(client);
}

/**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Expand Down Expand Up @@ -1150,6 +1164,7 @@ public Mono<ResponseEntity<Void>> testEndpointParametersWithHttpInfo(BigDecimal
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
Expand Down Expand Up @@ -1267,6 +1282,7 @@ public Mono<ResponseEntity<Void>> testEnumParametersWithHttpInfo(List<String> en
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)
Expand Down Expand Up @@ -1372,6 +1388,7 @@ public Mono<ResponseEntity<Void>> testGroupParametersWithHttpInfo(Integer requir
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
*
Expand Down Expand Up @@ -1441,6 +1458,7 @@ public Mono<ResponseEntity<Void>> testInlineAdditionalPropertiesWithHttpInfo(Map
public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(Map<String, String> requestBody) throws WebClientResponseException {
return testInlineAdditionalPropertiesRequestCreation(requestBody);
}

/**
* test inline free-form additionalProperties
*
Expand Down Expand Up @@ -1510,6 +1528,7 @@ public Mono<ResponseEntity<Void>> testInlineFreeformAdditionalPropertiesWithHttp
public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException {
return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest);
}

/**
* test json serialization of form data
*
Expand Down Expand Up @@ -1592,6 +1611,7 @@ public Mono<ResponseEntity<Void>> testJsonFormDataWithHttpInfo(String param, Str
public ResponseSpec testJsonFormDataWithResponseSpec(String param, String param2) throws WebClientResponseException {
return testJsonFormDataRequestCreation(param, param2);
}

/**
* test nullable parent property
*
Expand Down Expand Up @@ -1661,6 +1681,7 @@ public Mono<ResponseEntity<Void>> testNullableWithHttpInfo(ChildWithNullable chi
public ResponseSpec testNullableWithResponseSpec(ChildWithNullable childWithNullable) throws WebClientResponseException {
return testNullableRequestCreation(childWithNullable);
}

/**
*
* To test the collection format in query parameters
Expand Down Expand Up @@ -1780,6 +1801,7 @@ public Mono<ResponseEntity<Void>> testQueryParameterCollectionFormatWithHttpInfo
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
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,23 @@ public class FakeClassnameTags123Api {
private ApiClient apiClient;

public FakeClassnameTags123Api() {
this(new ApiClient());
this(new ApiClient());
}

@Autowired
public FakeClassnameTags123Api(ApiClient apiClient) {
this.apiClient = apiClient;
this.apiClient = apiClient;
}

public ApiClient getApiClient() {
return apiClient;
return apiClient;
}

public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
this.apiClient = apiClient;
}


/**
* To test class name in snake case
* To test class name in snake case
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,23 @@ public class PetApi {
private ApiClient apiClient;

public PetApi() {
this(new ApiClient());
this(new ApiClient());
}

@Autowired
public PetApi(ApiClient apiClient) {
this.apiClient = apiClient;
this.apiClient = apiClient;
}

public ApiClient getApiClient() {
return apiClient;
return apiClient;
}

public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
this.apiClient = apiClient;
}


/**
* Add a new pet to the store
*
Expand Down Expand Up @@ -122,6 +123,7 @@ public Mono<ResponseEntity<Void>> addPetWithHttpInfo(Pet pet) throws WebClientRe
public ResponseSpec addPetWithResponseSpec(Pet pet) throws WebClientResponseException {
return addPetRequestCreation(pet);
}

/**
* Deletes a pet
*
Expand Down Expand Up @@ -202,6 +204,7 @@ public Mono<ResponseEntity<Void>> deletePetWithHttpInfo(Long petId, String apiKe
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
Expand Down Expand Up @@ -280,6 +283,7 @@ public ResponseEntity<List<Pet>> findPetsByStatusWithHttpInfo(List<String> statu
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.
Expand Down Expand Up @@ -360,6 +364,7 @@ public ResponseEntity<List<Pet>> findPetsByTagsWithHttpInfo(Set<String> tags) th
public ResponseSpec findPetsByTagsWithResponseSpec(Set<String> tags) throws WebClientResponseException {
return findPetsByTagsRequestCreation(tags);
}

/**
* Find pet by ID
* Returns a single pet
Expand Down Expand Up @@ -442,6 +447,7 @@ public ResponseEntity<Pet> getPetByIdWithHttpInfo(Long petId) throws WebClientRe
public ResponseSpec getPetByIdWithResponseSpec(Long petId) throws WebClientResponseException {
return getPetByIdRequestCreation(petId);
}

/**
* Update an existing pet
*
Expand Down Expand Up @@ -523,6 +529,7 @@ public ResponseEntity<Void> updatePetWithHttpInfo(Pet pet) throws WebClientRespo
public ResponseSpec updatePetWithResponseSpec(Pet pet) throws WebClientResponseException {
return updatePetRequestCreation(pet);
}

/**
* Updates a pet in the store with form data
*
Expand Down Expand Up @@ -611,6 +618,7 @@ public Mono<ResponseEntity<Void>> updatePetWithFormWithHttpInfo(Long petId, Stri
public ResponseSpec updatePetWithFormWithResponseSpec(Long petId, String name, String status) throws WebClientResponseException {
return updatePetWithFormRequestCreation(petId, name, status);
}

/**
* uploads an image
*
Expand Down Expand Up @@ -700,6 +708,7 @@ public Mono<ResponseEntity<ModelApiResponse>> uploadFileWithHttpInfo(Long petId,
public ResponseSpec uploadFileWithResponseSpec(Long petId, String additionalMetadata, File _file) throws WebClientResponseException {
return uploadFileRequestCreation(petId, additionalMetadata, _file);
}

/**
* uploads an image (required)
*
Expand Down
Loading

0 comments on commit 965850a

Please sign in to comment.