반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 프로그래머스 레벨 2
- 크롤링
- 프로그래머스
- Algorithm
- 타입 챌린지
- dfs
- 수학
- HTTP 완벽 가이드
- ip
- 레벨 1
- type challenge
- Nestjs
- Node.js
- 그래프
- javascript
- HTTP
- 문자열
- 타입스크립트
- BFS
- TCP
- 자바스크립트
- 소켓
- dp
- 알고리즘
- socket
- 쉬운 문제
- Crawling
- 가천대
- typescript
- 백준
Archives
- Today
- Total
목록swagger badRequestException schema (1)
kakasoo
NestJS 스웨거에서 에러 스키마 작성하기
import { SchemaObject } from '@nestjs/swagger/dist/interfaces/open-api-spec.interface'; export const ERROR = { ALREADY_CREATED_EMAIL: { code: 4001, message: '이미 생성된 이메일입니다.' }, NO_AUTH_TOKEN: { code: 4002, message: '인증이 필요합니다.' }, IS_SAME_POSITION: { code: 4003, message: '이미지의 정렬 값이 동일한 경우가 존재합니다.' }, } as const; type KeyOfError = keyof typeof ERROR; type ValueOfError = (typeof ERROR)[KeyOfError..
프로그래밍/NestJS
2023. 1. 31. 01:13