Skip to content

Commit 90a33ec

Browse files
committed
feat(auth): Swagger 문서화에서 UserId와 RoleId 숨김 처리
- @hidden 어노테이션 추가로 Swagger API 문서에서 UserId와 RoleId를 숨김 - io.swagger.v3.oas.annotations.Hidden 임포트 추가
1 parent 9320dcc commit 90a33ec

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
package com.somemore.global.auth.annotation;
22

3+
import io.swagger.v3.oas.annotations.Hidden;
4+
35
import java.lang.annotation.ElementType;
46
import java.lang.annotation.Retention;
57
import java.lang.annotation.RetentionPolicy;
68
import java.lang.annotation.Target;
79

810
@Retention(RetentionPolicy.RUNTIME)
911
@Target(ElementType.PARAMETER)
12+
@Hidden
1013
public @interface RoleId {
1114
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
package com.somemore.global.auth.annotation;
22

3+
import io.swagger.v3.oas.annotations.Hidden;
4+
35
import java.lang.annotation.ElementType;
46
import java.lang.annotation.Retention;
57
import java.lang.annotation.RetentionPolicy;
68
import java.lang.annotation.Target;
79

810
@Retention(RetentionPolicy.RUNTIME)
911
@Target(ElementType.PARAMETER)
12+
@Hidden
1013
public @interface UserId {
1114
}

0 commit comments

Comments
 (0)