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

fix: enable nestjs swagger #16

Merged
merged 3 commits into from
Mar 29, 2023
Merged

Conversation

h16rkim
Copy link
Contributor

@h16rkim h16rkim commented Mar 29, 2023

Overview

I fixed the issue that Nestjs Swagger documentation was not being displayed correctly.

Closes #15

PR Checklist

  • I read and included theses actions below
  1. I have read the Contributing Guide
  2. I have written documents and tests, if needed.

@@ -35,6 +35,11 @@ export const createDecorator = (
return originalFn.apply(this, args);
};

/** Swagger documentation will be displayed correctly only if this part is included. */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

function.name을 이용하여 동작하는 코드들이 있어서 유지
ex) @nestjs/swagger

느낌 어떠십니까

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수정했습니당

*
* ex) @nestjs/swagger
*/
Object.defineProperty(descriptor.value, 'name', {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 테케 넣어주실 수 있나요

Copy link
Contributor Author

@h16rkim h16rkim Mar 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e5c3418

테스트케이스 추가했습니다

@WhiteKiwi WhiteKiwi merged commit 223424d into toss:v2.x Mar 29, 2023
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.

[BUG]: Controller Method 에 사용시 Swagger 데이터 손실 발생
2 participants