Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FINERACT-1105 Swagger now generates a valid spec file #1270

Merged
merged 1 commit into from
Aug 23, 2020
Merged

FINERACT-1105 Swagger now generates a valid spec file #1270

merged 1 commit into from
Aug 23, 2020

Conversation

Grandolf49
Copy link
Contributor

@Grandolf49 Grandolf49 commented Aug 22, 2020

Description

FINERACT-1105

It is essential that Swagger Gradle Plugin generates a valid spec file so that Swagger Codegen is able to generate a valid client library. Earlier, swagger was generating an invalid spec file due to some missing elements in the source code. This PR fixes the issue. Some APIs were missing Path Parameter. So I have added it in the appropriate methods. Still exploring if this can be avoided.

This is an example of a valid spec file generated by swagger: fineract-valid-spec.yaml
Test it using https://validator.swagger.io/

This is the earlier spec file: fineract.yaml

Checklist

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

Our guidelines for code reviews is at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide

Copy link
Contributor

@xurror xurror left a comment

Choose a reason for hiding this comment

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

Hey @Grandolf49 , can you squash the commits into 1? Now need to have up to three commit messages for this PR.

@Grandolf49
Copy link
Contributor Author

Yeah sure! I'll squash.

@Grandolf49 Grandolf49 requested a review from xurror August 23, 2020 09:52
FINERACT-1105 Added description to response 200

FINERACT-1105 Valid Spec File generated

FINERACT-1105 Valid Open API Spec File generated

FINERACT-1105 Added description to response 200

FINERACT-1105 Valid Spec File generated
Copy link
Contributor

@xurror xurror left a comment

Choose a reason for hiding this comment

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

LGTM

@xurror xurror closed this Aug 23, 2020
@xurror xurror reopened this Aug 23, 2020
@xurror xurror merged commit 217e34b into apache:develop Aug 23, 2020
@Grandolf49 Grandolf49 deleted the fineract-1105 branch August 23, 2020 16:32
@Grandolf49 Grandolf49 restored the fineract-1105 branch August 24, 2020 11:00
@Grandolf49 Grandolf49 deleted the fineract-1105 branch August 26, 2020 06:07
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.

2 participants