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 6cb741a7a FINERACT-1724: Swagger fix for Inline Job execution
6cb741a7a is described below

commit 6cb741a7a20e34d175d718bad00af97aca01d8dd
Author: Arnold Galovics <[email protected]>
AuthorDate: Tue Oct 25 17:27:33 2022 +0200

    FINERACT-1724: Swagger fix for Inline Job execution
---
 .../org/apache/fineract/infrastructure/jobs/api/InlineJobResource.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/fineract-provider/src/main/java/org/apache/fineract/infrastructure/jobs/api/InlineJobResource.java
 
b/fineract-provider/src/main/java/org/apache/fineract/infrastructure/jobs/api/InlineJobResource.java
index a931b4390..2c7a270e3 100644
--- 
a/fineract-provider/src/main/java/org/apache/fineract/infrastructure/jobs/api/InlineJobResource.java
+++ 
b/fineract-provider/src/main/java/org/apache/fineract/infrastructure/jobs/api/InlineJobResource.java
@@ -20,7 +20,6 @@ package org.apache.fineract.infrastructure.jobs.api;
 
 import io.swagger.v3.oas.annotations.Operation;
 import io.swagger.v3.oas.annotations.Parameter;
-import io.swagger.v3.oas.annotations.media.ArraySchema;
 import io.swagger.v3.oas.annotations.media.Content;
 import io.swagger.v3.oas.annotations.media.Schema;
 import io.swagger.v3.oas.annotations.parameters.RequestBody;
@@ -58,7 +57,7 @@ public class InlineJobResource {
     @Operation(summary = "Starts an inline Job", description = "Starts an 
inline Job")
     @RequestBody(content = @Content(schema = @Schema(implementation = 
InlineJobResourceSwagger.InlineJobRequest.class)))
     @ApiResponses({
-            @ApiResponse(responseCode = "200", description = "OK", content = 
@Content(array = @ArraySchema(schema = @Schema(implementation = 
InlineJobResourceSwagger.InlineJobResponse.class)))) })
+            @ApiResponse(responseCode = "200", description = "OK", content = 
@Content(schema = @Schema(implementation = 
InlineJobResourceSwagger.InlineJobResponse.class))) })
     public String executeInlineJob(@PathParam("jobName") 
@Parameter(description = "jobName") final String jobName,
             @Parameter(hidden = true) final String jsonRequestBody) {
 

Reply via email to