Skip to content

Commit

Permalink
merge #229: swagger 수정 (request body, 안내 메시지)
Browse files Browse the repository at this point in the history
[fix] swagger 수정 (request body, 안내 메시지)
  • Loading branch information
yaongmeow authored Dec 4, 2023
2 parents c5dc37a + c368b30 commit b222c00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion BE/src/postings/postings.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ export class PostingsController {
summary: '게시글 생성',
description: '사용자가 입력한 정보를 토대로 새로운 게시글을 생성합니다.',
})
@ApiConsumes('application/x-www-form-urlencoded')
@ApiCreatedResponse({ schema: { example: create_OK } })
@ApiBadRequestResponse({
schema: {
Expand Down
6 changes: 4 additions & 2 deletions BE/src/timelines/dto/create-timeline.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export class CreateTimelineDto {
required: false,
type: 'double',
example: 126.970606917394,
description: '장소의 X 좌표',
description:
'장소의 X 좌표 (값을 보내지 않을 때는 Send empty value를 체크하지 말아주세요)',
})
@IsOptional()
@Transform(({ value }) => parseFloat(value))
Expand All @@ -57,7 +58,8 @@ export class CreateTimelineDto {
required: false,
type: 'double',
example: 37.5546788388674,
description: '장소의 Y 좌표',
description:
'장소의 Y 좌표 (값을 보내지 않을 때는 Send empty value를 체크하지 말아주세요)',
})
@IsOptional()
@Transform(({ value }) => parseFloat(value))
Expand Down

0 comments on commit b222c00

Please sign in to comment.