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

refactoring v2 #10

Merged
merged 4 commits into from
Oct 23, 2023
Merged

refactoring v2 #10

merged 4 commits into from
Oct 23, 2023

Conversation

SVilgelm
Copy link
Member

@SVilgelm SVilgelm commented Oct 23, 2023

Refactoring the operations

The swagger v2.0 supports only a subset of the possible http methods and does not support any custom methods, like SEARCH and etc...

This change fixes the issue by getting rid of the predefined get, post and other operations and using the BTreeMap<String, Operation> instead. So any operations can be used.

The operation's name (method) is converted to lowercase in order to avoid duplications.

Reorganizing the validations

Move the helpers methods and the ValidateWithContext with Context to common::helpers mod.
So the libs::validation should have only Validate trait

Detect unused components

Refactor code to detect unused components, validate all components at the end and check if they were visited

@SVilgelm SVilgelm changed the title fix PathItem to support any possible operation methods refactoring Oct 23, 2023
@SVilgelm SVilgelm changed the title refactoring refactoring v2 Oct 23, 2023
@SVilgelm SVilgelm merged commit 16f09ba into main Oct 23, 2023
1 check passed
@SVilgelm SVilgelm deleted the v2 branch October 23, 2023 23: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.

1 participant