Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@oleksma
Copy link
Contributor

@oleksma oleksma commented Mar 3, 2025

Description

Describe the changes made and why they were made.

Ignore if these details are present on the associated Apache Fineract JIRA ticket.

Checklist

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Write the commit message as per https://github.com/apache/fineract/#pull-requests

  • Acknowledge that we will not review PRs that are not passing the build ("green") - it is your responsibility to get a proposed PR to pass the build, not primarily the project's maintainers.

  • Create/update unit or integration tests for verifying the changes made.

  • Follow coding conventions at https://cwiki.apache.org/confluence/display/FINERACT/Coding+Conventions.

  • Add required Swagger annotation and update API documentation at fineract-provider/src/main/resources/static/legacy-docs/apiLive.htm with details of any API changes

  • Submission is not a "code dump". (Large changes can be made "in repository" via a branch. Ask on the developer mailing list for guidance, if required.)

FYI our guidelines for code reviews are at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide.


public String getExternalId() {
return externalId;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, if you're already starting to refactor this class, you can use Lombok getters for name, id, and externalId.

@oleksma oleksma force-pushed the FINERACT-2169/apply-dto-instead-string-json-in-FundsApiResource branch 3 times, most recently from 2381476 to abc5036 Compare March 6, 2025 14:59
@oleksma oleksma marked this pull request as ready for review March 7, 2025 07:55
@Operation(summary = "Create a Fund", description = "Creates a Fund")
@RequestBody(required = true, content = @Content(schema = @Schema(implementation = FundsApiResourceSwagger.PostFundsRequest.class)))
@ApiResponses({
@ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = FundsApiResourceSwagger.PostFundsResponse.class))) })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might wanna remove @apiresponse annotation or update "PostFundsResponse" which is not overlapping with CommandProcessingResult, except 1 field....

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I will fix

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed FundsApiResourceSwagger

1)removed
GetFundsResponse
PostFundsRequest

2)added field
private String externalId;
to PutFundsFundIdRequest

@oleksma oleksma force-pushed the FINERACT-2169/apply-dto-instead-string-json-in-FundsApiResource branch 3 times, most recently from 2d04600 to 9ecfc30 Compare March 16, 2025 18:33
@oleksma oleksma force-pushed the FINERACT-2169/apply-dto-instead-string-json-in-FundsApiResource branch from 9ecfc30 to 173d74e Compare March 16, 2025 19:36
@adamsaghy adamsaghy merged commit c9c01a5 into apache:develop Mar 19, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants