Skip to content

Comments

feat: Multiple SecurityRequirement annotations with AND condition #3556#5025

Merged
daniel-kmiecik merged 5 commits intoswagger-api:masterfrom
Olfi01:ft/3556-multiple-securityrequirement-annotations
Feb 25, 2026
Merged

feat: Multiple SecurityRequirement annotations with AND condition #3556#5025
daniel-kmiecik merged 5 commits intoswagger-api:masterfrom
Olfi01:ft/3556-multiple-securityrequirement-annotations

Conversation

@Olfi01
Copy link
Contributor

@Olfi01 Olfi01 commented Nov 26, 2025

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)

Screenshots / Additional Context

@daniel-kmiecik
Copy link
Collaborator

@Olfi01 great work! We really appreciate your contribution!

@daniel-kmiecik daniel-kmiecik merged commit abf2a4e into swagger-api:master Feb 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple SecurityRequirements annotations with AND condition

3 participants