Skip to content

Commit

Permalink
Add swagger plugin (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
khkim6040 authored Aug 1, 2024
1 parent 8093e2d commit 1e42f9b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
12 changes: 11 additions & 1 deletion nest-cli.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
{
"collection": "@nestjs/schematics",
"sourceRoot": "src"
"sourceRoot": "src",
"compilerOptions": {
"plugins": [
{
"name": "@nestjs/swagger",
"options": {
"classValidatorShim": true
}
}
]
}
}
11 changes: 0 additions & 11 deletions src/popo/reservation/place/reserve.place.dto.ts
Original file line number Diff line number Diff line change
@@ -1,32 +1,21 @@
import { ApiProperty } from '@nestjs/swagger';

export class CreateReservePlaceDto {
@ApiProperty()
readonly place_id: string; // uuid of place

@ApiProperty()
readonly booker_id?: string; // uuid of booker

@ApiProperty()
readonly phone: string;

@ApiProperty()
readonly title: string;

@ApiProperty()
readonly description: string;

@ApiProperty()
readonly date: string; // YYYYMMDD

@ApiProperty()
readonly start_time: string; // hhmm

@ApiProperty()
readonly end_time: string; // hhmm
}

export class AcceptPlaceReservationListDto {
@ApiProperty()
readonly uuid_list: string[];
}

0 comments on commit 1e42f9b

Please sign in to comment.