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

refactor(openapi): DRY and logic reorg #556

Merged
merged 1 commit into from
Aug 1, 2022
Merged

Conversation

kanadgupta
Copy link
Member

🚥 Fix RM-XXX

🧰 Changes

Combines the file-searching logic (i.e. auto-detection of openapi.json, swagger.yml, etc.) from the validate and openapi commands and puts it in our prepareOas helper function. That function signature has changed a bit to handle that shared logic a bit better. I also refactored the openapi command to have a flow that is easier to follow.

These changes are setting up the updates coming in RM-4898 and RM-4984.

🧬 QA & Testing

Might help to hide whitespace for this review! No changes were made to tests and no functional changes are happening so if all tests pass we should be good to go.

@kanadgupta kanadgupta added refactor Issues about tackling technical debt command:openapi Issues pertaining to the `openapi`, `validate`, `reduce`, or `swagger` commands labels Aug 1, 2022
@kanadgupta kanadgupta requested a review from erunion August 1, 2022 18:16
@kanadgupta kanadgupta merged commit 9ec4ad6 into main Aug 1, 2022
@kanadgupta kanadgupta deleted the refactor/oas-commands branch August 1, 2022 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command:openapi Issues pertaining to the `openapi`, `validate`, `reduce`, or `swagger` commands refactor Issues about tackling technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants