This is an automated email from the ASF dual-hosted git repository.

arnold pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new 91e5e570e FINERACT-1724: Fix delinquency tags swagger response type
91e5e570e is described below

commit 91e5e570ecf732b6c46baeeaf809534ab156bdb6
Author: Adam Saghy <[email protected]>
AuthorDate: Fri Dec 9 12:42:00 2022 +0100

    FINERACT-1724: Fix delinquency tags swagger response type
---
 .../apache/fineract/portfolio/loanaccount/api/LoansApiResource.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/api/LoansApiResource.java
 
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/api/LoansApiResource.java
index e1e8ae05d..162ee82e8 100644
--- 
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/api/LoansApiResource.java
+++ 
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/api/LoansApiResource.java
@@ -24,6 +24,7 @@ import com.google.gson.JsonElement;
 import io.swagger.v3.oas.annotations.Operation;
 import io.swagger.v3.oas.annotations.Parameter;
 import io.swagger.v3.oas.annotations.enums.ParameterIn;
+import io.swagger.v3.oas.annotations.media.ArraySchema;
 import io.swagger.v3.oas.annotations.media.Content;
 import io.swagger.v3.oas.annotations.media.ExampleObject;
 import io.swagger.v3.oas.annotations.media.Schema;
@@ -998,7 +999,7 @@ public class LoansApiResource {
     @Produces(MediaType.APPLICATION_JSON)
     @Operation(summary = "Retrieve the Loan Delinquency Tag history using the 
Loan Id", description = "")
     @ApiResponses({
-            @ApiResponse(responseCode = "200", description = "OK", content = 
@Content(schema = @Schema(implementation = 
DelinquencyApiResourceSwagger.GetDelinquencyTagHistoryResponse.class))) })
+            @ApiResponse(responseCode = "200", description = "OK", content = 
@Content(array = @ArraySchema(schema = @Schema(implementation = 
DelinquencyApiResourceSwagger.GetDelinquencyTagHistoryResponse.class)))) })
     public String getDelinquencyTagHistory(@PathParam("loanId") 
@Parameter(description = "loanId") final Long loanId,
             @Context final UriInfo uriInfo) {
         
context.authenticatedUser().validateHasReadPermission("DELINQUENCY_TAGS");

Reply via email to