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

openapi3filter: Simplify ValidateRequest implementation #1041

Merged

Conversation

alexandear
Copy link
Contributor

The PR refactors openapi3filter.ValidateRequest. If options.MultiError == true, the function compares err != nil twice instead of once.

@alexandear alexandear force-pushed the openapi3filter-simplify-validate-request branch from c6a2b92 to ecbc224 Compare December 11, 2024 10:55
@alexandear alexandear force-pushed the openapi3filter-simplify-validate-request branch from ecbc224 to 3cd9819 Compare December 11, 2024 10:56
@fenollp fenollp merged commit 325cecc into getkin:master Dec 11, 2024
5 checks passed
@alexandear alexandear deleted the openapi3filter-simplify-validate-request branch December 11, 2024 22:04
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