-
-
Notifications
You must be signed in to change notification settings - Fork 773
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
Auth all paths #703
Auth all paths #703
Conversation
Fix auth_all_paths for openapi3
Don't set resolver_error for all apis
Cool, thanks for this fix @cziebuhr ! I'm curious about the change from Can you split your first commit into (1) fix the bug, (2) change the style? It took me longer than it should have to find the bug (not getting securitySchemes in oas3, test not applying to both specs) in the many lines that were changed. |
It's hard to split, because the reason it failed is that properties have been saved in For long-term, one could argue if it makes sense to have two different classes (swagger2/openapi3) also for the whole spec and not only for each operation. |
Wait, isn't the bug in the title fixed by the following minor change?
FWIW I absolutely agree with the refactor, my feedback was just that it was hard find that change, since your PR changes a lot more than what's in the title. Sorry if I am missing something obvious - it's getting late here. Admittedly I haven't tried to pull your diff and split it myself. I'll give that a go tomorrow so I know what I'm talking about. I really like your idea of making spec classes. Now that |
You're right. If you do a proof of concept: For #686 I also had in mind to move parts of |
The only thing which is not handled is the resolver error cleanup, but that's only minor. |
Changes proposed in this pull request: