Skip to content

Commit

Permalink
Merge pull request #140 from mash-up-kr/fix/places
Browse files Browse the repository at this point in the history
hotfix: valid annotation 추가
  • Loading branch information
KimDoubleB authored Aug 10, 2024
2 parents 2b0e6bf + 3a99597 commit a27693a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class PlaceApi(
@PostMapping
override fun addPlace(
@NotNull @PathVariable roomUid: UUID,
@Valid @RequestPart addPlaceRequest: AddPlaceRequest,
@Valid @NotNull @RequestPart addPlaceRequest: AddPlaceRequest,
@RequestPart(required = false) placeImages: List<MultipartFile>?,
): ResponseForm<PlaceResponse> {
return ResponseForm(placeUseCase.addPlace(UuidTypeId(roomUid), addPlaceRequest, placeImages))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ class ExceptionAdvice(
"${violation.propertyPath}: ${violation.message}"
}
}

else -> {
"Cause is chaos"
"Cause is chaos [${exception.message}]"
}
}

Expand Down

0 comments on commit a27693a

Please sign in to comment.