Skip to content

Commit

Permalink
[SELC-5116] Fix: Added cf in RowError (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaminiaScarciofolo authored Jul 15, 2024
1 parent 00b9969 commit 1f0a745
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/onboarding-ms/src/main/docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2096,7 +2096,7 @@
}
},
"RowError" : {
"required" : [ "row", "cf" ],
"required" : [ "row" ],
"type" : "object",
"properties" : {
"row" : {
Expand Down
1 change: 0 additions & 1 deletion apps/onboarding-ms/src/main/docs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,6 @@ components:
RowError:
required:
- row
- cf
type: object
properties:
row:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public class RowError {
@NotNull
private Integer row;
@NotNull

private String cf;
private String reason;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private Uni<Void> checkCsvAggregateAndFillAggregateOrErrorList(CsvAggregate csvA
}

private static Uni<Void> mapToErrorRow(CsvAggregate csvAggregate, Throwable throwable, AggregatesCsvResponse aggregatesCsvResponse) {
aggregatesCsvResponse.getRowErrorList().add(new RowError(csvAggregate.getRowNumber(), "", throwable.getMessage()));
aggregatesCsvResponse.getRowErrorList().add(new RowError(csvAggregate.getRowNumber(), csvAggregate.getTaxCode(), throwable.getMessage()));
return Uni.createFrom().voidItem();
}

Expand Down

0 comments on commit 1f0a745

Please sign in to comment.