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

Feat: Support Swagger Optional Security Tag #847

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

rojiwon123
Copy link
Contributor

@rojiwon123 rojiwon123 commented Mar 25, 2024

In OpenAPI, optional security is supported, which refers to APIs where authorization tokens may or may not be present. To support this in Nestia, some code modifications were made.

Below is how you can add optional security:

@nest.Controller("security")
export class Controller{
  /**
  * @security
  * @security bearer
  */
  async security(){}
}

about #849
about OAI/OpenAPI-Specification#14

@samchon samchon changed the base branch from master to features/security March 26, 2024 12:47
@samchon samchon merged commit 0bed4f2 into samchon:features/security Mar 26, 2024
1 check passed
samchon added a commit that referenced this pull request Mar 26, 2024
@samchon
Copy link
Owner

samchon commented Mar 26, 2024

Upgrade to v2.6.1, then your feature be activated.

@samchon samchon self-assigned this Mar 26, 2024
@samchon samchon added the enhancement New feature or request label Mar 26, 2024
@samchon samchon self-requested a review March 26, 2024 12:59
@samchon samchon assigned rojiwon123 and unassigned samchon Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants