feat: Multiple SecurityRequirement annotations with AND condition #3556 by Olfi01 · Pull Request #5025 · swagger-api/swagger-core (original) (raw)
Description
This PR introduces the possibility to specify multiple security requirements that are required in conjunction as opposed to being alternatives. As described by @miloszwatroba in #3556, this feature is already present in the swagger-models, but currently there is no way to specify it using annotations.
Following @frantuma's suggestion, this PR implements a possibility to specify multiple requirements with AND condition without breaking compatibility.
Fixes: #3556
Type of Change
- 🐛 Bug fix
- ✨ New feature
- ♻️ Refactor (non-breaking change)
- 🧪 Tests
- 📝 Documentation
- 🧹 Chore (build or tooling)
Checklist
- I have added/updated tests as needed
- I have added/updated documentation where applicable
- The PR title is descriptive
- The code builds and passes tests locally
- I have linked related issues (if any)