Skip to content

Commit

Permalink
feat: READ_ONLY accesMode를 통해 요청을 보낼 때 필드값이 보이지 않도록 수정 (#796)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschoi-96 authored Dec 8, 2024
1 parent 4e2e868 commit 7a07f0b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/main/java/balancetalk/game/dto/GameOptionDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@ public class GameOptionDto {
@Schema(description = "선택지 이름", example = "선택지 이름")
private String name;

@Schema(description = "선택지 이미지",
example = "https://pikko-image.s3.ap-northeast-2.amazonaws.com/balance-game/4839036ee7cd_unnamed.png")
private String imgUrl;

@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(description = "선택지 이미지 파일 ID", example = "12")
private Long fileId;

@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(description = "선택지 이미지",
example = "https://pikko-image.s3.ap-northeast-2.amazonaws.com/balance-game/4839036ee7cd_unnamed.png",
accessMode = Schema.AccessMode.READ_ONLY)
private String imgUrl;

@Schema(description = "선택지 추가설명", example = "선택지 추가 설명")
private String description;

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/balancetalk/game/dto/TempGameOptionDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ public class TempGameOptionDto {

@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(description = "선택지 이미지",
example = "https://pikko-image.s3.ap-northeast-2.amazonaws.com/balance-game/4839036ee7cd_unnamed.png")
example = "https://pikko-image.s3.ap-northeast-2.amazonaws.com/balance-game/4839036ee7cd_unnamed.png",
accessMode = Schema.AccessMode.READ_ONLY)
private String imgUrl;

@Schema(description = "선택지 추가설명", example = "선택지 추가 설명")
Expand Down

0 comments on commit 7a07f0b

Please sign in to comment.